I'm getting this error related to my PHP error-handling function.
Undefined offset: 1
Here's the error handling code:
function customError($errno, $errstr)
{
error_log("Error: [$errno] $errstr",1,"[email protected]","From: [email protected]");
die();
}
//set error handler
set_error_handler("customError");
Can anyone help point out what's causing the error?