From bb6038db767169648015d13278509d26fd3aaa21 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 14 Sep 2009 11:39:58 -0400 Subject: [PATCH] Don't overwrite the array of $links we obtain from freshmeat in this loop. --- framework/Release/lib/Horde/Release.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Release/lib/Horde/Release.php b/framework/Release/lib/Horde/Release.php index 7faabff18..9760ada60 100644 --- a/framework/Release/lib/Horde/Release.php +++ b/framework/Release/lib/Horde/Release.php @@ -710,7 +710,7 @@ class Horde_Release throw new Horde_Exception($e); } - $response = Horde_Serialize::unserialize($response->getBody(), Horde_Serialize::JSON); + $url_response = Horde_Serialize::unserialize($response->getBody(), Horde_Serialize::JSON); if (!is_array($response)) { $response = array(); } @@ -719,7 +719,7 @@ class Horde_Release // updates and see if we can find the correct 'permalink' parameter. foreach ($links as $link) { $permalink = ''; - foreach ($response as $url) { + foreach ($url_response as $url) { // FM docs contradict this, but each url entry in the array is // wrapped in a 'url' property. $url = $url->url; -- 2.11.0