From: Stephen Paul Weber Date: Thu, 22 Oct 2015 19:13:56 +0000 (+0000) Subject: Catch exception that this generates when there is no result X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=96e0819f00ac0c2f9ea3fa35d58e50b4c3a9b49b;p=quix0rs-gnu-social.git Catch exception that this generates when there is no result --- diff --git a/plugins/Linkback/lib/util.php b/plugins/Linkback/lib/util.php index 16454b5873..cf3f55c5ff 100644 --- a/plugins/Linkback/lib/util.php +++ b/plugins/Linkback/lib/util.php @@ -276,7 +276,10 @@ function linkback_profile($entry, $mf2, $response, $target) { return true; } - $profile = Profile::fromUri($author['url'][0]); + try { + $profile = Profile::fromUri($author['url'][0]); + } catch(UnknownUriException $ex) {} + if(!($profile instanceof Profile)) { $profile = Profile::getKV('profileurl', $author['url'][0]); }