Menu

#68 links are lost when maxframes > 0 and expandlinks = true

open
nobody
None
5
2008-12-23
2008-12-23
Anonymous
No

The fetchlinks function returns string "Array" instead of the array when expandlinks = true and maxframes > 0.

I modified the function and now it works fine:

function fetchlinks($URI)
{
if ($this->fetch($URI))
{
if($this->lastredirectaddr) $URI = $this->lastredirectaddr;

if(is_array($this->results)) {
for($x=0;$x<count($this->results);$x++) {
$this->results[$x] = $this->_striplinks($this->results[$x]);
if($this->expandlinks) $this->results[$x] = $this->_expandlinks($this->results[$x], $URI);
}
} else {
$this->results = $this->_striplinks($this->results);
if($this->expandlinks) $this->results = $this->_expandlinks($this->results, $URI);
}
return true;
}
else
return false;
}

Discussion


Log in to post a comment.