This commit is contained in:
Kijin Sung 2020-04-03 17:09:26 +09:00
parent 95f0caafcc
commit dfbdf46085
2 changed files with 3 additions and 3 deletions

View file

@ -170,8 +170,8 @@ class DisplayHandler extends Handler
} }
// Do not display debugging information if there is no output. // Do not display debugging information if there is no output.
$display_types = config('debug.display_type'); $display_types = config('debug.display_type') ?: [];
if (!is_array($display_types)) if ($display_types && !is_array($display_types))
{ {
$display_types = array($display_types); $display_types = array($display_types);
} }

View file

@ -817,7 +817,7 @@ class adminAdminController extends admin
$vars = Context::getRequestVars(); $vars = Context::getRequestVars();
// Save display type settings // Save display type settings
$display_type = array_values(array_filter($vars->debug_display_type, function($str) { $display_type = array_values(array_filter($vars->debug_display_type ?: [], function($str) {
return in_array($str, ['panel', 'comment', 'file']); return in_array($str, ['panel', 'comment', 'file']);
})); }));