From 366d7e5f7bba28f8b05f90c775f18d2a68530edf Mon Sep 17 00:00:00 2001 From: mBertholino Date: Mon, 30 Jan 2012 10:19:06 +0000 Subject: [PATCH] // correction norme in AdminEmployeesController git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12788 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminEmployeesController.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/controllers/admin/AdminEmployeesController.php b/controllers/admin/AdminEmployeesController.php index f347774b3..331b3694e 100644 --- a/controllers/admin/AdminEmployeesController.php +++ b/controllers/admin/AdminEmployeesController.php @@ -51,14 +51,14 @@ class AdminEmployeesControllerCore extends AdminController check if there are more than one superAdmin if it's the case then we can delete a superAdmin */ - $superAdmin = Employee::countProfile(1, true); - if ($superAdmin == 1) + $super_admin = Employee::countProfile(1, true); + if ($super_admin == 1) { - $superAdmin_array = Employee::getEmployeesByProfile(1, true); - $superAdmin_id = array(); - foreach ($superAdmin_array as $key => $val) - $superAdmin_id[] = $val['id_employee']; - $this->addRowActionSkipList('delete', $superAdmin_id); + $super_admin_array = Employee::getEmployeesByProfile(1, true); + $super_admin_id = array(); + foreach ($super_admin_array as $key => $val) + $super_admin_id[] = $val['id_employee']; + $this->addRowActionSkipList('delete', $super_admin_id); } $profiles = Profile::getProfiles($this->context->language->id);