summaryrefslogtreecommitdiff
path: root/plugins/cache_starred_images
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-17 21:54:43 +0300
committerAndrew Dolgov <[email protected]>2021-02-17 21:54:43 +0300
commitb888bc2091c6737846f54a729ee047e4693fd8e3 (patch)
tree786fa2242718a8ff6e3fd1b9a900faf5b026b413 /plugins/cache_starred_images
parente4609c18efceebb1e021d814f53061ada7f6489a (diff)
cache_starred_images: don't try to use undefined array index
Diffstat (limited to 'plugins/cache_starred_images')
-rwxr-xr-xplugins/cache_starred_images/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/cache_starred_images/init.php b/plugins/cache_starred_images/init.php
index bd44a2b28..9f17c492f 100755
--- a/plugins/cache_starred_images/init.php
+++ b/plugins/cache_starred_images/init.php
@@ -164,7 +164,7 @@ class Cache_Starred_Images extends Plugin {
if ($this->cache->exists($status_filename))
$status = json_decode($this->cache->get($status_filename), true);
else
- $status = [];
+ $status = ["attempt" => 0];
$status["attempt"] += 1;