mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 08:49:47 -05:00
Fix: Prevent corrupted config from not displaying the dashboard
This commit is contained in:
@@ -795,8 +795,8 @@ jQuery.prototype.mixedView = function(s) {
|
||||
}
|
||||
}
|
||||
|
||||
<?if (file_exists($cookie)):?>
|
||||
var cookie = JSON.parse('<?=file_get_contents($cookie)?>');
|
||||
<?if ( json_decode(@file_get_contents($cookie),true) ):?>
|
||||
var cookie = JSON.parse('<?=trim(file_get_contents($cookie));?>');
|
||||
<?else:?>
|
||||
var cookie = {};
|
||||
<?endif;?>
|
||||
|
||||
Reference in New Issue
Block a user