Преглед на файлове

Fixe login user not found

stany.ferer преди 1 година
родител
ревизия
0184b24ce3
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      core/class/user.class.php

+ 2 - 1
core/class/user.class.php

@@ -69,7 +69,8 @@ class user {
                 . "FROM " . DB_T_USER . " "
                 . "WHERE " . DB_T_USER . ".email = :email");
         db::bind(':email', $_email);
-        return db::single()["googleAuthenticator"];
+        $return = db::single();
+        return (isset($return["googleAuthenticator"])) ? $return["googleAuthenticator"] : 0;
     }
 
     public static function connect(array $_input) {