From e03e077a8c45a35431547b440300a14924aa8b5b Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 2 Dec 2021 14:08:24 -0800 Subject: [PATCH] PHP 8.1 Notice fix. --- e107_handlers/media_class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e107_handlers/media_class.php b/e107_handlers/media_class.php index a4b2a19e9..bd66cf74b 100644 --- a/e107_handlers/media_class.php +++ b/e107_handlers/media_class.php @@ -111,6 +111,11 @@ class e_media $count = 0; foreach($img_array as $f) { + + if(!is_array($f)) + { + continue; + } if($f['fsize'] === 0) // prevent zero-byte files. {