From 073e6bec83982456454a8e9bf06cfae23fc0e690 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 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,