Fixes "googleapps administrator" status determination.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Sat, 19 Apr 2008 21:22:01 +0000 (23:22 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Sat, 19 Apr 2008 21:26:03 +0000 (23:26 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
include/googleapps.inc.php

index 54e3efe..6dae3b1 100644 (file)
@@ -444,7 +444,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);
     }
 }