summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2014-05-27 23:44:49 +0000
committerFredrick Brennan <admin@8chan.co>2014-05-27 23:50:20 +0000
commit073e6bec83982456454a8e9bf06cfae23fc0e690 (patch)
tree7b52440a0ebc03a7332ab373f045c00fe1005394 /inc/display.php
parenteea984859b4f369680152a44b67a4de942c2656a (diff)
Fix array_filter error message when debug_stuff is false
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php3
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,