]> git.mxchange.org Git - friendica.git/blobdiff - include/Scrape.php
Some small optical and structural changes to the manage template
[friendica.git] / include / Scrape.php
index ce203507720a8588276fae6cbfe9217b667fa47e..0169f55fd5d93db839d0dfa77250a8fc81fac0be 100644 (file)
@@ -652,9 +652,10 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
                        $feed->set_raw_data(($xml) ? $xml : '<?xml version="1.0" encoding="utf-8" ?><xml></xml>');
 
                        $feed->init();
-                       if($feed->error())
+                       if($feed->error()) {
                                logger('probe_url: scrape_feed: Error parsing XML: ' . $feed->error());
-
+                               $network = NETWORK_PHANTOM;
+                       }
 
                        if(! x($vcard,'photo'))
                                $vcard['photo'] = $feed->get_image_url();