From f9e61ef442e243f2d5142ac796f29c185f189f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 4 Mar 2013 17:36:25 +0100 Subject: [PATCH] // delete duplicates conf/error messages on admin --- classes/controller/AdminController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index a6ffccaff..4cf15f4e7 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -1201,11 +1201,11 @@ class AdminControllerCore extends Controller $this->context->smarty->assign('conf', $this->_conf[(int)$conf]); $notifications_type = array('errors', 'warnings', 'informations', 'confirmations'); - foreach($notifications_type as $type) + foreach($notifications_type as $type) if ($this->json) - $this->context->smarty->assign($type, Tools::jsonEncode($this->$type)); + $this->context->smarty->assign($type, Tools::jsonEncode(array_unique($this->$type))); else - $this->context->smarty->assign($type, $this->$type); + $this->context->smarty->assign($type, array_unique($this->$type)); if ($this->json) $this->context->smarty->assign('page', Tools::jsonEncode($page));