From: Michael J. Rubinsky Date: Mon, 14 Sep 2009 15:39:58 +0000 (-0400) Subject: Don't overwrite the array of $links we obtain from freshmeat in this loop. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bb6038db767169648015d13278509d26fd3aaa21;p=horde.git Don't overwrite the array of $links we obtain from freshmeat in this loop. --- 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;