reset_passwod final fix
[mirrors/Kyberia-bloodline.git] / wwwroot / backend / mysql / backend.inc
index 4bdcc8c0d8568f5455ae9bb9847e338708f93b7b..bf4c80d806c2b37c4ea16954d5b23845d776663d 100644 (file)
@@ -715,10 +715,10 @@ public static function resetPassword($login_id,$login,$vercode,$password) {
                return $error;
        }
 
-       if ($login_id = 0) {
+       if ($login_id == 0) {
                $set=$db->query("select * from users where login='$login'");
        } else {
-               $set=$db->query("select * from users where user_id='$login'");
+               $set=$db->query("select * from users where user_id='$login_id'");
        }
 
        $set->next();
This page took 0.115699 seconds and 4 git commands to generate.