1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Issue #2146 - Possible fix for hiding strict PHP warnings.

This commit is contained in:
Cameron
2016-12-22 10:29:34 -08:00
parent e140c0af26
commit 3ebeb140bd
2 changed files with 5 additions and 3 deletions

View File

@@ -2220,13 +2220,15 @@ class error_handler
//
global $_E107;
if(isset($_E107['debug']))
if(!empty($_E107['debug']))
{
$this->debug = true;
error_reporting(E_ALL);
return;
}
if(isset($_E107['cli']))
if(!empty($_E107['cli']))
{
error_reporting(E_ALL ^ E_NOTICE);
return;