Skip to content

Commit e6bd8f2

Browse files
authored
Fixed null warning
1 parent 687184d commit e6bd8f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/community/Fballiano/ImageCleaner/controllers/Adminhtml/FbimagecleanerController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function syncwysiwygAction()
186186
$used_images[] = $fs_image;
187187
}
188188
foreach ($db_images as $db_image) {
189-
if (stripos($db_image, $fs_image) !== false) {
189+
if (stripos($db_image ?? '', $fs_image) !== false) {
190190
$used_images[] = $fs_image;
191191
break;
192192
}
@@ -392,4 +392,4 @@ public function resetAction()
392392
$db->query("TRUNCATE TABLE {$cleaner_table}");
393393
$this->_redirect('*/*');
394394
}
395-
}
395+
}

0 commit comments

Comments
 (0)