]> git.mxchange.org Git - friendica.git/blobdiff - include/auth.php
Also reverted these + added spaces for nicer appearance.
[friendica.git] / include / auth.php
index f3193ee9048ebf6d36000d1882d1552a78596467..2ca9c3efb29e7937b326b40ee8e5d2665693cd57 100644 (file)
@@ -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());
                }
@@ -169,7 +169,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];
                }