Fix even more Warnings

This commit is contained in:
seiichiro 2022-01-11 18:11:13 +01:00
parent 097e97dd1b
commit 80b245775f

View file

@ -106,7 +106,7 @@ if (!empty($curfiles)| !empty($dirs)) {
if ($slice > 1) { if ($slice > 1) {
if (!empty($curfiles)) { if (!empty($curfiles)) {
foreach ($curfiles as $index => $image) { foreach ($curfiles as $index => $image) {
if (in_array($image, $dirs)) { if (!empty($dirs) && in_array($image, $dirs)) {
$data['dirs'][] = $image; $data['dirs'][] = $image;
} else { } else {
$tmp['n'] = $image; $tmp['n'] = $image;