diff options
| author | 8chan <admin@8chan.co> | 2014-05-27 23:44:49 +0000 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-05-31 22:43:34 +0200 |
| commit | b506c0be9f0146e01aed5e52c4f139388820ba20 (patch) | |
| tree | 7dfd4408b3bd70af60eb894ffc23451010591f00 /inc | |
| parent | 56695fbf04ebcc34eafd6cb12719101be3546f73 (diff) | |
Fix array_filter error message when debug_stuff is false
Diffstat (limited to 'inc')
| -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 dd8b1444..4e8ab8fb 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, |
