From ec556bb307a00ffa5a4aa1b3b01e31422d648ed2 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Sun, 8 Sep 2013 20:01:55 +0200 Subject: [PATCH] // remove Warning on array_map() --- controllers/admin/AdminPaymentController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/admin/AdminPaymentController.php b/controllers/admin/AdminPaymentController.php index 8a09dda92..eba965fdd 100644 --- a/controllers/admin/AdminPaymentController.php +++ b/controllers/admin/AdminPaymentController.php @@ -213,6 +213,7 @@ class AdminPaymentControllerCore extends AdminController if ($name_id == 'country' && isset($module->limited_countries) && !empty($module->limited_countries) + && is_array($module->limited_countries) && !(in_array(strtoupper($item['iso_code']), array_map('strtoupper', $module->limited_countries)))) $list['items'][$key_item]['check_list'][$key_module] = null; }