mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:15:55 +00:00
af_redditimgur: make sure content_link is defined even if content dupcheck is disabled
This commit is contained in:
@@ -301,8 +301,9 @@ class Af_RedditImgur extends Plugin {
|
|||||||
@$doc->loadHTML($article["content"]);
|
@$doc->loadHTML($article["content"]);
|
||||||
$xpath = new DOMXPath($doc);
|
$xpath = new DOMXPath($doc);
|
||||||
|
|
||||||
|
$content_link = $xpath->query("(//a[contains(., '[link]')])")->item(0);
|
||||||
|
|
||||||
if ($this->host->get($this, "enable_content_dupcheck")) {
|
if ($this->host->get($this, "enable_content_dupcheck")) {
|
||||||
$content_link = $xpath->query("(//a[contains(., '[link]')])")->item(0);
|
|
||||||
|
|
||||||
if ($content_link) {
|
if ($content_link) {
|
||||||
$content_href = db_escape_string($content_link->getAttribute("href"));
|
$content_href = db_escape_string($content_link->getAttribute("href"));
|
||||||
|
|||||||
Reference in New Issue
Block a user