Fix scrutinizer warning

This commit is contained in:
Laurent Destailleur 2016-04-09 16:00:24 +02:00
parent 83644dcb93
commit 935327d911

View File

@ -1478,7 +1478,7 @@ class Categorie extends CommonObject
$handle=opendir($dir);
if (is_resource($handle))
{
while (($file = readdir($handle)) != false)
while (($file = readdir($handle)) !== false)
{
if (dol_is_file($dir.$file) && preg_match('/(\.jpg|\.bmp|\.gif|\.png|\.tiff)$/i',$dir.$file))
{