From fc8b9a435a07aa0c8458f7ced9508c11055fc3ca 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15654 b9a71923-0436-4b27-9f14-aed3839534dd --- 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');