From b506c0be9f0146e01aed5e52c4f139388820ba20 Mon Sep 17 00:00:00 2001 From: 8chan Date: Tue, 27 May 2014 23:44:49 +0000 Subject: [PATCH] Fix array_filter error message when debug_stuff is false --- inc/display.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,