use integer iterator for childNodes in ActivityUtils::getLinks()

This commit is contained in:
Evan Prodromou 2011-05-30 09:57:11 -04:00
parent d8151311ee
commit 97debbab68
1 changed files with 3 additions and 2 deletions

View File

@ -104,8 +104,9 @@ class ActivityUtils
{
$els = $element->childNodes;
$out = array();
foreach ($els as $link) {
for ($i = 0; $i < $els->length; $i++) {
$link = $els->item($i);
if ($link->localName == self::LINK && $link->namespaceURI == self::ATOM) {
$linkRel = $link->getAttribute(self::REL);
$linkType = $link->getAttribute(self::TYPE);