X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fauth.php;h=a02c18d1dbf0f64aa045e418e9155cd91af3773d;hb=0457bd995fe4e723a7cad33c8d464186646db5db;hp=5da71ef6e1a10823a222bb51ded54e8a74794053;hpb=2196a0577b29dcec1ba4d2c32be10fa5f0e91034;p=friendica.git diff --git a/include/auth.php b/include/auth.php index 5da71ef6e1..a02c18d1db 100644 --- a/include/auth.php +++ b/include/auth.php @@ -17,11 +17,11 @@ if (isset($_COOKIE["Friendica"])) { $user = dba::select('user', [], [ - 'uid' => intval($data->uid), - 'blocked' => 0, - 'account_expired' => 0, - 'account_removed' => 0, - 'verified' => 1, + 'uid' => $data->uid, + 'blocked' => false, + 'account_expired' => false, + 'account_removed' => false, + 'verified' => true, ], ['limit' => 1] ); @@ -86,11 +86,11 @@ if (isset($_SESSION) && x($_SESSION, 'authenticated') && (!x($_POST, 'auth-param $user = dba::select('user', [], [ - 'uid' => intval($_SESSION['uid']), - 'blocked' => 0, - 'account_expired' => 0, - 'account_removed' => 0, - 'verified' => 1, + 'uid' => $_SESSION['uid'], + 'blocked' => false, + 'account_expired' => false, + 'account_removed' => false, + 'verified' => true, ], ['limit' => 1] );