Fix modulelName error

This commit is contained in:
Fred Tempez 2021-03-24 16:31:05 +01:00
parent 9e36af3846
commit 0658c6a9bc

View File

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