Quit if follow failes because of not configured addon

2022.09-rc
Michael 2018-01-30 18:51:09 +00:00
rodzic c0b8685343
commit ae362f01d5
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

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