Merge branch '10501' into 11000

This commit is contained in:
Fred Tempez 2021-03-24 16:32:33 +01:00
commit b5aa88483d
1 changed files with 4 additions and 2 deletions

View File

@ -110,8 +110,10 @@ class addon extends common {
if ( is_dir( $moduleDir )) { if ( is_dir( $moduleDir )) {
// Lire le nom du module // Lire le nom du module
if ($dh = opendir( $moduleDir )) { if ($dh = opendir( $moduleDir )) {
while (($file = readdir($dh)) !== false) { while ( false !== ($file = readdir($dh)) ) {
$moduleName = $file; if ($file != "." && $file != "..") {
$moduleName = $file;
}
} }
closedir($dh); closedir($dh);
} }