[-] BO : Add a check on the scandir for the Employees theme
This commit is contained in:
1 parent
7b740da54f
commit
2464b59eff
1 file changed
+1
-1
@@ -111,7 +111,7 @@ class AdminEmployeesControllerCore extends AdminController
|
|||||||
|
|
||||||
$path = _PS_ADMIN_DIR_.'/themes/';
|
$path = _PS_ADMIN_DIR_.'/themes/';
|
||||||
foreach (scandir($path) as $theme)
|
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;
|
$this->themes[] = $theme;
|
||||||
|
|
||||||
$home_tab = Tab::getInstanceFromClassName('adminHome');
|
$home_tab = Tab::getInstanceFromClassName('adminHome');
|
||||||
|
|||||||
Reference in new issue
Block a user