I know this has been asked before but I can't seem to figure it out
I'm getting an error that start with Fatal error: Using $this when not in object context and then goes on to include the file name and a line number. Line number 854 which is this part
Code:
if (isset($this->error_handler))
This is the code
Code:
/**
* error report
*/
function error( $msg, $level = '')
{
$lvl = E_USER_WARNING;
if ('fatal' == $level) $lvl = E_USER_ERROR;
if (isset($this->error_handler))
{
$this->error_handler->report($lvl, $msg);
}
else
{
trigger_error("\n<br><font color='#CC0099'><b>$level:</b> $msg</font><br>\n",$lvl);
if ('fatal' == $level) { exit; }
}
}
Could someone please help
|