Improves user experience in creating Google Apps accounts (thanks to Olivier Le Floch).
[platal.git] / include / googleapps.inc.php
index 6dae3b1..1e9ee3c 100644 (file)
@@ -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,