From: Joe Hunt Date: Thu, 8 Jun 2017 09:31:28 +0000 (+0200) Subject: 0003876: Notice: Trying to get property of non-object in C:\Apache24\htdocs\frontacco... X-Git-Tag: v2.4.2~16 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=020d309dc37e9400d27ef3cad381e6f1b04f67fd 0003876: Notice: Trying to get property of non-object in C:\Apache24\htdocs\frontaccounting\includes\errors.inc on line 74 --- diff --git a/includes/errors.inc b/includes/errors.inc index 2a1aedd9..c5414d60 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -71,7 +71,7 @@ function error_handler($errno, $errstr, $file, $line) { } } - $bt = $SysPrefs->go_debug>1 ? get_backtrace(true, 1) : array(); + $bt = isset($SysPrefs) && $SysPrefs->go_debug>1 ? get_backtrace(true, 1) : array(); // error_reporting==0 when messages are set off with @ if ($errno & error_reporting()) {