Commit 97debbab authored by Evan Prodromou's avatar Evan Prodromou

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

parent d8151311
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment