diff --git a/functions.php b/functions.php index 84f34e1..fe6e9cb 100644 --- a/functions.php +++ b/functions.php @@ -105,7 +105,7 @@ function scandirRec($path, $category, $params) { $items = array_merge($items, scandirRec($file, $category, $params)); } else { $return = scandirRec($file, $category, $params); - if (count($return) > 0) { + if (!empty($return)) { $items[] = $return; } }