Merge pull request #12571 from mexon/mat/local-contact
Allow adding local contacts via console
This commit is contained in:
commit
b04feeeac5
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ HELP;
|
||||||
|
|
||||||
$url = Probe::cleanURI($url);
|
$url = Probe::cleanURI($url);
|
||||||
|
|
||||||
$contact = ContactModel::getByURLForUser($url, $user['uid']);
|
$contact = ContactModel::getByURL($url, null, [], $user['uid']);
|
||||||
if (!empty($contact)) {
|
if (!empty($contact)) {
|
||||||
throw new RuntimeException('Contact already exists');
|
throw new RuntimeException('Contact already exists');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue