From 80b245775f8340bf204006e8b57adabbab8ad359 Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Tue, 11 Jan 2022 18:11:13 +0100 Subject: [PATCH] Fix even more Warnings --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index f5d957c..73d7901 100644 --- a/index.php +++ b/index.php @@ -106,7 +106,7 @@ if (!empty($curfiles)| !empty($dirs)) { if ($slice > 1) { if (!empty($curfiles)) { foreach ($curfiles as $index => $image) { - if (in_array($image, $dirs)) { + if (!empty($dirs) && in_array($image, $dirs)) { $data['dirs'][] = $image; } else { $tmp['n'] = $image;