From: Vincent Zanotti Date: Fri, 21 Mar 2008 17:55:33 +0000 (+0100) Subject: Fixes user selection in admin/googleapps/user/. X-Git-Tag: xorg/0.9.16~90 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fcef7ce234a4d8ab53d923e4df740d75b359aced;p=platal.git Fixes user selection in admin/googleapps/user/. Signed-off-by: Vincent Zanotti --- 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();