From fcef7ce234a4d8ab53d923e4df740d75b359aced Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Fri, 21 Mar 2008 18:55:33 +0100 Subject: [PATCH] Fixes user selection in admin/googleapps/user/. Signed-off-by: Vincent Zanotti --- modules/googleapps.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/googleapps.php b/modules/googleapps.php index 6eb41ba..f02053b 100644 --- a/modules/googleapps.php +++ b/modules/googleapps.php @@ -181,7 +181,10 @@ class GoogleAppsModule extends PLModule $page->changeTpl('googleapps/admin.user.tpl'); $page->assign('xorg_title', 'Polytechnique.org - Administration Google Apps'); $page->assign('googleapps_admin', GoogleAppsAccount::is_administrator(S::v('uid'))); - + + if (!$user && Post::has('login')) { + $user = Post::v('login'); + } if ($user && !is_numeric($user)) { $res = XDB::query("SELECT id FROM aliases WHERE alias = {?} AND type != 'homonyme'", $user); $user = $res->fetchOneCell(); -- 2.1.4