diff --git a/controllers/admin/AdminEmployeesController.php b/controllers/admin/AdminEmployeesController.php index c7524a76a..796e75b4c 100644 --- a/controllers/admin/AdminEmployeesController.php +++ b/controllers/admin/AdminEmployeesController.php @@ -111,7 +111,7 @@ class AdminEmployeesControllerCore extends AdminController $path = _PS_ADMIN_DIR_.'/themes/'; foreach (scandir($path) as $theme) - if (file_exists($path.$theme.'/css/admin.css')) + if ($theme[0] != '.' && is_dir($path.$theme) && file_exists($path.$theme.'/css/admin.css')) $this->themes[] = $theme; $home_tab = Tab::getInstanceFromClassName('adminHome');