cache_starred_images: don't try to use undefined array index

This commit is contained in:
Andrew Dolgov 2021-02-17 21:54:43 +03:00
parent e4609c18ef
commit b888bc2091
1 changed files with 1 additions and 1 deletions

View File

@ -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;