diff --git a/mmlc_installer.php b/mmlc_installer.php index 1bf9951..a98ea5b 100644 --- a/mmlc_installer.php +++ b/mmlc_installer.php @@ -242,15 +242,13 @@ private function getAdminDirs() $fileName = basename($filePath); $fileNameLower = strtolower($fileName); - if (strpos($fileNameLower, 'admin') !== 0) { - continue; + if (strpos($fileNameLower, 'admin') !== false && is_dir($fileName)) { + $adminDirs[] = $fileName; } - if (!file_exists($filePath . '/check_update.php')) { - continue; + if (file_exists($filePath . '/check_update.php')) { + $adminDirs[] = $fileName; } - - $adminDirs[] = $fileName; } return $adminDirs;