1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

PHP 8.1 Notice fix.

This commit is contained in:
Cameron
2021-12-02 14:08:24 -08:00
parent 762befb092
commit e03e077a8c

View File

@@ -111,6 +111,11 @@ class e_media
$count = 0; $count = 0;
foreach($img_array as $f) foreach($img_array as $f)
{ {
if(!is_array($f))
{
continue;
}
if($f['fsize'] === 0) // prevent zero-byte files. if($f['fsize'] === 0) // prevent zero-byte files.
{ {