Sirjacob - 2006-08-23

Logged In: YES
user_id=1582574

Change

function session_error($errno, $errmsg, $filename,
$linenum, $vars)
{
POC_Chat::display_error($errno, $errmsg, $filename,
$linenum, $vars, POC_SESSION_ERROR);
}
function db_error($errno, $errmsg, $filename, $linenum,
$vars)
{
POC_Chat::display_error($errno, $errmsg, $filename,
$linenum, $vars, POC_DB_ERROR);
}

------------------------------------------------------------
------------------------------------------

With

------------------------------------------------------------
---------------------------------------

error_reporting(E_USER_ERROR | E_USER_WARNING |
E_USER_NOTICE);
function session_error($errno, $errmsg, $filename,
$linenum, $vars)
{
$user_errors = array(E_USER_ERROR, E_USER_WARNING,
E_USER_NOTICE);
if (in_array($errno, $user_errors)):
POC_Chat::display_error($errno, $errmsg, $filename,
$linenum, $vars, POC_SESSION_ERROR);
endif;
}
function db_error($errno, $errmsg, $filename, $linenum,
$vars)
{
$user_errors = array(E_USER_ERROR, E_USER_WARNING,
E_USER_NOTICE);
if (in_array($errno, $user_errors)):
POC_Chat::display_error($errno, $errmsg, $filename,
$linenum, $vars, POC_DB_ERROR);
endif;
}

In your index.php file