From 2464b59eff19c3c37e2c260100aa73c53c08d1b4 Mon Sep 17 00:00:00 2001 From: gCharmes Date: Wed, 23 May 2012 23:05:13 +0000 Subject: [PATCH] [-] BO : Add a check on the scandir for the Employees theme --- controllers/admin/AdminEmployeesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');