From: Stéphane Jacob Date: Mon, 9 Apr 2012 14:54:41 +0000 (+0200) Subject: Fixes last connexion on user admin page. X-Git-Tag: xorg/1.1.5~21 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4bd9c76e6cde6b4bdd63d5ea4546c42f9710325a;p=platal.git Fixes last connexion on user admin page. Signed-off-by: Stéphane Jacob --- diff --git a/modules/admin.php b/modules/admin.php index 4fc5989..3486164 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -713,7 +713,7 @@ class AdminModule extends PLModule // Displays last login and last host information. $res = XDB::query("SELECT start, host FROM log_sessions - WHERE uid = {?} AND suid = 0 + WHERE uid = {?} AND suid IS NULL ORDER BY start DESC LIMIT 1", $user->id()); list($lastlogin,$host) = $res->fetchOneRow();