From c89129ad2048c2d78239a828dadffadc8a8a93ba Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 12 Jan 2018 23:54:16 -0500 Subject: [PATCH] Fix typo when referring to dba::exists --- mod/contacts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/contacts.php b/mod/contacts.php index c26a1b57b6..f213b8370c 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -167,7 +167,7 @@ function contacts_post(App $a) 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); goaway('contacts'); return; // NOTREACHED @@ -177,7 +177,7 @@ function contacts_post(App $a) $profile_id = intval($_POST['profile-assign']); 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); return; } -- 2.39.5