From db71e56b85a6adef38eeac8e6b3d350f22cadf51 Mon Sep 17 00:00:00 2001 From: fGaillard Date: Tue, 31 Jan 2012 08:44:20 +0000 Subject: [PATCH] [-] BO : User id for Newsletter & Opt-in subscripion corrected git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12825 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminCustomersController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index f1b37140a..6003368d7 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -830,19 +830,19 @@ class AdminCustomersControllerCore extends AdminController Tools::redirectAdmin(self::$currentIndex.'&token='.$this->token); } - public static function printNewsIcon($id_customer, $tr) + public static function printNewsIcon($value, $customer) { return ' - '.($tr['newsletter'] ? '' : ''). + .(int)$customer['id_customer'].'&changeNewsletterVal&token='.Tools::getAdminTokenLite('AdminCustomers').'"> + '.($value ? '' : ''). ''; } - public static function printOptinIcon($id_customer, $tr) + public static function printOptinIcon($value, $customer) { return ' - '.($tr['optin'] ? '' : ''). + .(int)$customer['id_customer'].'&changeOptinVal&token='.Tools::getAdminTokenLite('AdminCustomers').'"> + '.($value ? '' : ''). ''; }