diff --git a/sources/subs/PackagesFilterIterator.class.php b/sources/subs/PackagesFilterIterator.class.php index ef3a1104d2..340bb138ce 100644 --- a/sources/subs/PackagesFilterIterator.class.php +++ b/sources/subs/PackagesFilterIterator.class.php @@ -41,7 +41,7 @@ public function accept() } // Anything that, once extracted, doesn't contain a package-info.xml. - if (!($current->isDir()) && file_exists($current->getPathname() . '/package-info.xml')) + if (!($current->isDir() && file_exists($current->getPathname() . '/package-info.xml'))) { return false; }