diff --git a/inc/display.php b/inc/display.php index 268c633d..41795514 100644 --- a/inc/display.php +++ b/inc/display.php @@ -125,7 +125,7 @@ function error($message, $priority = true, $debug_stuff = false) { 'message' => $message, 'mod' => $mod, 'board' => isset($board) ? $board : false, - 'debug' => is_array($debug_stuff) ? str_replace("\n", ' ', utf8tohtml(print_r($debug_stuff, true))) : utf8tohtml($debug_stuff) + 'debug' => $config['debug'] ? (is_array($debug_stuff) ? str_replace("\n", ' ', utf8tohtml(print_r($debug_stuff, true))) : utf8tohtml($debug_stuff)) : null )) ))); }