Rename DBA::is_result to DBA::isResult

This commit is contained in:
Hypolite Petovan 2018-07-21 08:46:04 -04:00 committed by Hypolite Petovan
parent 0ec44f3e8a
commit ecea7425f8
152 changed files with 765 additions and 765 deletions

View file

@ -184,7 +184,7 @@ class Login extends BaseModule
'verified' => true,
]
);
if (DBA::is_result($user)) {
if (DBA::isResult($user)) {
if ($data->hash != cookie_hash($user)) {
logger("Hash for user " . $data->uid . " doesn't fit.");
nuke_session();
@ -214,7 +214,7 @@ class Login extends BaseModule
$r = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1",
intval($_SESSION['visitor_id'])
);
if (DBA::is_result($r)) {
if (DBA::isResult($r)) {
self::getApp()->contact = $r[0];
}
}
@ -239,7 +239,7 @@ class Login extends BaseModule
'verified' => true,
]
);
if (!DBA::is_result($user)) {
if (!DBA::isResult($user)) {
nuke_session();
goaway(self::getApp()->get_baseurl());
}

View file

@ -51,7 +51,7 @@ class Owa extends BaseModule
$contact = DBA::selectFirst('contact', $fields, $condition);
if (DBA::is_result($contact)) {
if (DBA::isResult($contact)) {
// Try to verify the signed header with the public key of the contact record
// we have found.
$verified = HTTPSignature::verify('', $contact['pubkey']);