Avoid errors when noscrape data can't be fetched.
This commit is contained in:
parent
f496af08bb
commit
15296b8036
|
@ -19,9 +19,11 @@ function scrape_dfrn($url, $dont_probe = false) {
|
|||
if ($noscrapejson) {
|
||||
$noscrapedata = json_decode($noscrapejson, true);
|
||||
|
||||
if (is_array($noscrapedata))
|
||||
if (is_array($noscrapedata)) {
|
||||
if ($noscrapedata["nick"] != "")
|
||||
return($noscrapedata);
|
||||
} else
|
||||
$noscrapedata = array();
|
||||
}
|
||||
|
||||
$s = fetch_url($url);
|
||||
|
|
Loading…
Reference in New Issue
Block a user