Fix: Prevent corrupted config from not displaying the dashboard

This commit is contained in:
Squidly271
2025-04-16 17:36:47 -04:00
committed by GitHub
parent 6486409ace
commit 23a534c4fc
+2 -2
View File
@@ -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;?>