Fix typo when referring to dba::exists
This commit is contained in:
parent
c66af117b3
commit
c89129ad20
|
@ -167,7 +167,7 @@ function contacts_post(App $a)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DBM::exists('contact', ['id' => $contact_id, 'uid' => local_user()])) {
|
if (!dba::exists('contact', ['id' => $contact_id, 'uid' => local_user()])) {
|
||||||
notice(t('Could not access contact record.') . EOL);
|
notice(t('Could not access contact record.') . EOL);
|
||||||
goaway('contacts');
|
goaway('contacts');
|
||||||
return; // NOTREACHED
|
return; // NOTREACHED
|
||||||
|
@ -177,7 +177,7 @@ function contacts_post(App $a)
|
||||||
|
|
||||||
$profile_id = intval($_POST['profile-assign']);
|
$profile_id = intval($_POST['profile-assign']);
|
||||||
if ($profile_id) {
|
if ($profile_id) {
|
||||||
if (!DBM::exists('profile', ['id' => $profile_id, 'uid' => local_user()])) {
|
if (!dba::exists('profile', ['id' => $profile_id, 'uid' => local_user()])) {
|
||||||
notice(t('Could not locate selected profile.') . EOL);
|
notice(t('Could not locate selected profile.') . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user