From 04215f7ceeb4e1cff16fc6bb351724970b71e4d2 Mon Sep 17 00:00:00 2001 From: Erik Dannenberg Date: Mon, 22 Jan 2018 18:06:19 +0100 Subject: [PATCH] [bug-#436] Undefined var $k in Mage_Core_Model_Url_Rewrite::removeTag() --- app/code/core/Mage/Core/Model/Url/Rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Core/Model/Url/Rewrite.php b/app/code/core/Mage/Core/Model/Url/Rewrite.php index 5a69ad0c1db0..8b65a274e308 100644 --- a/app/code/core/Mage/Core/Model/Url/Rewrite.php +++ b/app/code/core/Mage/Core/Model/Url/Rewrite.php @@ -171,7 +171,7 @@ public function removeTag($tags) $removeTags = is_array($tags) ? $tags : explode(',', $tags); - foreach ($removeTags as $t) { + foreach ($removeTags as $k=>$t) { if (!is_numeric($k)) { $t = $k.'='.$t; }