X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fauth.php;h=e3c8d92eebd23f2ae9e6ba33d98f25fcab3ce8ec;hb=fc9dbc0899aed223378be677356cd74e722dfd14;hp=f3193ee9048ebf6d36000d1882d1552a78596467;hpb=3e701b90ac1b2341833f6847c97c68a7f770afaa;p=friendica.git
diff --git a/include/auth.php b/include/auth.php
index f3193ee904..e3c8d92eeb 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -50,7 +50,7 @@ if (isset($_SESSION) && x($_SESSION,'authenticated') && (!x($_POST,'auth-params'
$r = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1",
intval($_SESSION['visitor_id'])
);
- if (dba::is_result($r)) {
+ if (dbm::is_result($r)) {
$a->contact = $r[0];
}
}
@@ -73,7 +73,7 @@ if (isset($_SESSION) && x($_SESSION,'authenticated') && (!x($_POST,'auth-params'
intval($_SESSION['uid'])
);
- if (!count($r)) {
+ if (!dbm::is_result($r)) {
nuke_session();
goaway(z_root());
}
@@ -125,8 +125,7 @@ if (isset($_SESSION) && x($_SESSION,'authenticated') && (!x($_POST,'auth-params'
$openid = new LightOpenID;
$openid->identity = $openid_url;
$_SESSION['openid'] = $openid_url;
- $a = get_app();
- $openid->returnUrl = $a->get_baseurl(true).'/openid';
+ $openid->returnUrl = App::get_baseurl(true).'/openid';
goaway($openid->authUrl());
} catch (Exception $e) {
notice(t('We encountered a problem while logging in with the OpenID you provided. Please check the correct spelling of the ID.').'
'.t('The error message was:').' '.$e->getMessage());
@@ -169,7 +168,7 @@ if (isset($_SESSION) && x($_SESSION,'authenticated') && (!x($_POST,'auth-params'
dbesc(trim($_POST['username'])),
dbesc($encrypted)
);
- if (dba::is_result($r))
+ if (dbm::is_result($r))
$record = $r[0];
}