0003876: Notice: Trying to get property of non-object in C:\Apache24\htdocs\frontacco...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 8 Jun 2017 09:31:28 +0000 (11:31 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 8 Jun 2017 09:31:28 +0000 (11:31 +0200)
includes/errors.inc

index 2a1aedd9f9138afdd4ab5bd79c37fa67fbe1191a..c5414d60b92b26aca3d27fa8b641a5b7c2fd7421 100644 (file)
@@ -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()) {