mirror of
https://github.com/friendica/friendica
synced 2025-04-22 03:10:10 +00:00
Rename DBA::is_result to DBA::isResult
This commit is contained in:
parent
0ec44f3e8a
commit
ecea7425f8
152 changed files with 765 additions and 765 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue