From fa8848d7a86133eea2b284f69373a39b54050a2c Mon Sep 17 00:00:00 2001 From: Thibaud Chauviere Date: Mon, 8 Sep 2014 09:40:13 +0200 Subject: [PATCH] [-] MO : blocktopmenu - Fix htmldecode on link edit --- blocktopmenu.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/blocktopmenu.php b/blocktopmenu.php index b439077..d25ee8b 100644 --- a/blocktopmenu.php +++ b/blocktopmenu.php @@ -1233,9 +1233,8 @@ class Blocktopmenu extends Module { $link = MenuTopLinks::getLinkLang(Tools::getValue('id_linksmenutop'), (int)Shop::getContextShopID()); - array_walk($link['label'], function(&$value) { - $value = Tools::htmlentitiesDecodeUTF8($value); - }); + foreach ($link['link'] as $key => $label) + $link['link'][$key] = Tools::htmlentitiesDecodeUTF8($label); $links_label_edit = $link['link']; $labels_edit = $link['label'];