summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-09 08:18:12 +0300
committerAndrew Dolgov <[email protected]>2021-02-09 08:18:12 +0300
commit0757b0ec8b95b4a9f91b2dd40ec774af9a3d4a0b (patch)
tree465d9ef0b7e5672fec813a706643a86ac7298a43
parent478850ae6f56edaf1cd8bbc172b16e1cc2a59e7d (diff)
fix php8 warning
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 457843c..d22acb9 100644
--- a/init.php
+++ b/init.php
@@ -288,7 +288,7 @@ class Api_Resize_Media extends Plugin {
}
}
- if (is_array($article["attachments"])) {
+ if (isset($article["attachments"]) && is_array($article["attachments"])) {
$tmp =& $article["attachments"];
for ($i = 0; $i < count($tmp); $i++) {