From: Florent Bruneau Date: Thu, 2 Dec 2010 19:36:44 +0000 (+0100) Subject: Fix SQL error (not enough arguments to fill all the placeholders). X-Git-Tag: xorg/1.0.2~32^2~26 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=be281b3183a7db3c62697d3ab59cf38cb7bed1b0;p=platal.git Fix SQL error (not enough arguments to fill all the placeholders). Signed-off-by: Florent Bruneau --- diff --git a/classes/user.php b/classes/user.php index 854c848..6a3be38 100644 --- a/classes/user.php +++ b/classes/user.php @@ -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());