mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #1262
This commit is contained in:
parent
95f0caafcc
commit
dfbdf46085
2 changed files with 3 additions and 3 deletions
|
|
@ -170,8 +170,8 @@ class DisplayHandler extends Handler
|
|||
}
|
||||
|
||||
// Do not display debugging information if there is no output.
|
||||
$display_types = config('debug.display_type');
|
||||
if (!is_array($display_types))
|
||||
$display_types = config('debug.display_type') ?: [];
|
||||
if ($display_types && !is_array($display_types))
|
||||
{
|
||||
$display_types = array($display_types);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -817,7 +817,7 @@ class adminAdminController extends admin
|
|||
$vars = Context::getRequestVars();
|
||||
|
||||
// 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']);
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue