From 4bd9c76e6cde6b4bdd63d5ea4546c42f9710325a Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 9 Apr 2012 16:54:41 +0200 Subject: [PATCH] Fixes last connexion on user admin page. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.1.4