Fix SQL error (not enough arguments to fill all the placeholders).
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 2 Dec 2010 19:36:44 +0000 (20:36 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 2 Dec 2010 19:36:44 +0000 (20:36 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/user.php

index 854c848..6a3be38 100644 (file)
@@ -813,7 +813,7 @@ class User extends PlUser
         XDB::execute('UPDATE  log_last_sessions
                          SET  id = {?}
                        WHERE  uid = {?}',
-                     $newuser->id());
+                     $lastSession, $newuser->id());
         XDB::execute('DELETE FROM  accounts
                             WHERE  uid = {?}',
                      $this->id());