Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure $link->getLineNo() exists before using

Fixes #223
  • Loading branch information...
commit 75baa9651ee04c8c7d57702a8d5f1b7b6eb58605 1 parent 976d025
@rmccue rmccue authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/SimplePie/Locator.php
View
2  library/SimplePie/Locator.php
@@ -268,7 +268,7 @@ public function get_links()
$parsed = $this->registry->call('Misc', 'parse_url', array($href));
if ($parsed['scheme'] === '' || preg_match('/^(http(s)|feed)?$/i', $parsed['scheme']))
{
- if ($this->base_location < $link->getLineNo())
+ if (method_exists($link, 'getLineNo') && $this->base_location < $link->getLineNo())
{
$href = $this->registry->call('Misc', 'absolutize_url', array(trim($link->getAttribute('href')), $this->base));
}
Please sign in to comment.
Something went wrong with that request. Please try again.