if (!$res) return $article;
$doc = new DOMDocument();
- @$doc->loadHTML(fetch_file_contents($article["link"]));
-
- $basenode = false;
- if ($doc) {
+ if (@$doc->loadHTML(fetch_file_contents($article["link"]))) {
$xpath = new DOMXPath($doc);
$basenode = $xpath->query('//img[contains(@src, ".gif")]')->item(0);
return false;
}
-}
-?>
+}
\ No newline at end of file