We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f91ea0 + 1b1154a commit 07a4012Copy full SHA for 07a4012
1 file changed
ncp-web/backups.php
@@ -55,7 +55,10 @@ function filesize_compat($file)
55
$cache_str = file_get_contents($cache_file)
56
or exit("error opening ${cache_file}");
57
58
- $cache = json_decode($cache_str, true) or [];
+ $cache = json_decode($cache_str, true);
59
+ if (!is_array($cache)) {
60
+ $cache = [];
61
+ }
62
} else {
63
$cache = [];
64
}
0 commit comments