X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fgoogleapps.inc.php;h=1e9ee3c161fcf0a59c8e9e23ff234fbeedebee71;hb=690c8519de6c3fb5d9e68e9c39c32b7098439ede;hp=54e3efe55cef568c442dfd3d03b97aed6f733802;hpb=53ee429b076f679168fda0301651a21b00ddf0e3;p=platal.git diff --git a/include/googleapps.inc.php b/include/googleapps.inc.php index 54e3efe..1e9ee3c 100644 --- a/include/googleapps.inc.php +++ b/include/googleapps.inc.php @@ -149,6 +149,9 @@ class GoogleAppsAccount $this->uid = $uid; $this->g_account_name = $account_name; $this->g_status = NULL; + if (!$this->g_account_name) { + return; + } $res = XDB::query( "SELECT l_sync_password, l_activate_mail_redirection, @@ -444,7 +447,7 @@ class GoogleAppsAccount "SELECT g_admin FROM gapps_accounts WHERE l_userid = {?} AND g_status = 'active'", $uid); - return ($res->numRows() > 0 ? (bool)$res->fetchOneRow() : false); + return ($res->numRows() > 0 ? (bool)$res->fetchOneCell() : false); } }