From 1d49ff4ae684f13250408798f4b0a945797a5229 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 26 Feb 2010 00:14:42 +0100 Subject: [PATCH] Fixes startSessionAs. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- classes/xorgsession.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/xorgsession.php b/classes/xorgsession.php index 796a5aa..93a746b 100644 --- a/classes/xorgsession.php +++ b/classes/xorgsession.php @@ -201,13 +201,13 @@ class XorgSession extends PlSession a.last_version, g.g_account_name IS NOT NULL AS googleapps, UNIX_TIMESTAMP(s.start) AS lastlogin, s.host, a.is_admin, at.perms - FROM accounts AS a - INNER JOIN account_types AS at ON(a.type = at.type) - INNER JOIN watch AS w ON(w.uid = a.uid) - LEFT JOIN forum_profiles AS fp ON(fp.uid = a.uid) - LEFT JOIN gapps_accounts AS g ON(a.uid = g.l_userid AND g.g_status = 'active') + FROM accounts AS a + INNER JOIN account_types AS at ON (a.type = at.type) + LEFT JOIN watch AS w ON (w.uid = a.uid) + LEFT JOIN forum_profiles AS fp ON (fp.uid = a.uid) + LEFT JOIN gapps_accounts AS g ON (a.uid = g.l_userid AND g.g_status = 'active') LEFT JOIN log_last_sessions AS ls ON (ls.uid = a.uid) - LEFT JOIN log_sessions AS s ON(s.id = ls.id) + LEFT JOIN log_sessions AS s ON(s.id = ls.id) WHERE a.uid = {?} AND a.state = 'active'", $user->id()); if ($res->numRows() != 1) { return false; -- 2.1.4