From b888bc2091c6737846f54a729ee047e4693fd8e3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Feb 2021 21:54:43 +0300 Subject: [PATCH] cache_starred_images: don't try to use undefined array index --- plugins/cache_starred_images/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;