1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

PHP 8.1 fixes.

This commit is contained in:
Cameron
2021-11-25 10:18:53 -08:00
parent 98b8955185
commit 9d6a9611e2
17 changed files with 110 additions and 88 deletions

View File

@@ -229,7 +229,7 @@
{
$ret = array();
$invert = false;
if(strpos($fmask, '~') === 0)
if(!empty($fmask) && strpos($fmask, '~') === 0)
{
$invert = true; // Invert selection - exclude files which match selection
$fmask = substr($fmask, 1);