diff options
| author | 8chan <admin@8chan.co> | 2014-05-27 23:44:49 +0000 |
|---|---|---|
| committer | Fredrick Brennan <admin@8chan.co> | 2014-05-27 23:50:20 +0000 |
| commit | 073e6bec83982456454a8e9bf06cfae23fc0e690 (patch) | |
| tree | 7b52440a0ebc03a7332ab373f045c00fe1005394 | |
| parent | eea984859b4f369680152a44b67a4de942c2656a (diff) | |
Fix array_filter error message when debug_stuff is false
| -rw-r--r-- | inc/display.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php index ab2daeb6..e5ce1da1 100644 --- a/inc/display.php +++ b/inc/display.php @@ -118,7 +118,8 @@ function error($message, $priority = true, $debug_stuff = false) { }; - $debug_stuff = array_filter($debug_stuff, $debug_callback); + if ($debug_stuff) + $debug_stuff = array_filter($debug_stuff, $debug_callback); die(Element('page.html', array( 'config' => $config, |
