if (strpos($article["link"], "threewordphrase.com") !== FALSE) {
$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("//td/center/img")->item(0);
return false;
}
-}
-?>
+}
\ No newline at end of file