Quit if follow failes because of not configured addon
This commit is contained in:
parent
c0b8685343
commit
ae362f01d5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user