mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Issue #2146 - Possible fix for hiding strict PHP warnings.
This commit is contained in:
@@ -2220,13 +2220,15 @@ class error_handler
|
|||||||
|
|
||||||
//
|
//
|
||||||
global $_E107;
|
global $_E107;
|
||||||
if(isset($_E107['debug']))
|
|
||||||
|
if(!empty($_E107['debug']))
|
||||||
{
|
{
|
||||||
$this->debug = true;
|
$this->debug = true;
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(isset($_E107['cli']))
|
|
||||||
|
if(!empty($_E107['cli']))
|
||||||
{
|
{
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
error_reporting(E_ALL ^ E_NOTICE);
|
||||||
return;
|
return;
|
||||||
|
@@ -815,7 +815,7 @@ class e107
|
|||||||
{
|
{
|
||||||
global $e107_debug, $_E107;
|
global $e107_debug, $_E107;
|
||||||
|
|
||||||
if(($e107_debug || isset($_E107['debug']) || (defined('e_DEBUG') && e_DEBUG === true) ))
|
if(($e107_debug || !empty($_E107['debug']) || (defined('e_DEBUG') && e_DEBUG === true) ))
|
||||||
{
|
{
|
||||||
require_once($path);
|
require_once($path);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user