Catch exception that this generates when there is no result

This commit is contained in:
Stephen Paul Weber 2015-10-22 19:13:56 +00:00
parent c5bdf6924d
commit 96e0819f00

View File

@ -276,7 +276,10 @@ function linkback_profile($entry, $mf2, $response, $target) {
return true; return true;
} }
$profile = Profile::fromUri($author['url'][0]); try {
$profile = Profile::fromUri($author['url'][0]);
} catch(UnknownUriException $ex) {}
if(!($profile instanceof Profile)) { if(!($profile instanceof Profile)) {
$profile = Profile::getKV('profileurl', $author['url'][0]); $profile = Profile::getKV('profileurl', $author['url'][0]);
} }