mirror of
https://github.com/friendica/friendica
synced 2024-11-19 20:23:40 +00:00
Quit if follow failes because of not configured addon
This commit is contained in:
parent
c0b8685343
commit
ae362f01d5
1 changed files with 5 additions and 0 deletions
|
@ -1151,6 +1151,11 @@ class Contact extends BaseObject
|
||||||
|
|
||||||
Addon::callHooks('follow', $arr);
|
Addon::callHooks('follow', $arr);
|
||||||
|
|
||||||
|
if (empty($arr)) {
|
||||||
|
$result['message'] = L10n::t('Contact cannot be added.');
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
if (x($arr['contact'], 'name')) {
|
if (x($arr['contact'], 'name')) {
|
||||||
$ret = $arr['contact'];
|
$ret = $arr['contact'];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue