From: Michael Date: Tue, 30 Jan 2018 18:51:09 +0000 (+0000) Subject: Quit if follow failes because of not configured addon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae362f01d52ddf55c8310549115cef2626573934;p=friendica.git Quit if follow failes because of not configured addon --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 3b12dbf739..27925bfe03 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1151,6 +1151,11 @@ class Contact extends BaseObject Addon::callHooks('follow', $arr); + if (empty($arr)) { + $result['message'] = L10n::t('Contact cannot be added.'); + return $result; + } + if (x($arr['contact'], 'name')) { $ret = $arr['contact']; } else {