cache_starred_images: don't try to use undefined array index

master
Andrew Dolgov 4 years ago
parent e4609c18ef
commit b888bc2091

@ -164,7 +164,7 @@ class Cache_Starred_Images extends Plugin {
if ($this->cache->exists($status_filename)) if ($this->cache->exists($status_filename))
$status = json_decode($this->cache->get($status_filename), true); $status = json_decode($this->cache->get($status_filename), true);
else else
$status = []; $status = ["attempt" => 0];
$status["attempt"] += 1; $status["attempt"] += 1;

Loading…
Cancel
Save