Quit if follow failes because of not configured addon

This commit is contained in:
Michael 2018-01-30 18:51:09 +00:00
parent c0b8685343
commit ae362f01d5

View file

@ -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 {