We have just recompiled our server from php4 to php5 and getting an error:
Fatal error: Cannot use string offset as an array in /home/xxx/[login to view URL] on line 146
That file has the following code at that line:
return strtoupper($fMemb[ login ][ 0 ]).str_repeat("0", 6 - strlen($fMemb[ id ])).$fMemb[ id ];
}
The code above this line is below:
--------------------------------------------------------
function sysGetProfileCode($fMemb = 1)
{
global $fMember;
if($fMemb == 1)
{
$fMemb = $fMember;
}
return strtoupper($fMemb[ login ][ 0 ]).str_repeat("0", 6 - strlen($fMemb[ id ])).$fMemb[ id ];
} // sysGetProfileCode
-----------------------------------------------------------------
We need a fix to get this code working on the new PHP5.