forked from GNUsocial/gnu-social
		
	use integer iterator for childNodes in ActivityUtils::getLinks()
This commit is contained in:
		@@ -105,7 +105,8 @@ class ActivityUtils
 | 
				
			|||||||
        $els = $element->childNodes;
 | 
					        $els = $element->childNodes;
 | 
				
			||||||
        $out = array();
 | 
					        $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) {
 | 
					            if ($link->localName == self::LINK && $link->namespaceURI == self::ATOM) {
 | 
				
			||||||
                $linkRel = $link->getAttribute(self::REL);
 | 
					                $linkRel = $link->getAttribute(self::REL);
 | 
				
			||||||
                $linkType = $link->getAttribute(self::TYPE);
 | 
					                $linkType = $link->getAttribute(self::TYPE);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user