X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fgoogleapps.inc.php;h=28d94599e735646d155c2ec42f59922598f31d1e;hb=748b472c3d72eda244edb80efeae2fffbab27d1f;hp=6dae3b15d65d087ff74531c93f6849cebd5983ab;hpb=7464a978a670655106ed51d811afa3c2c993f2ed;p=platal.git diff --git a/include/googleapps.inc.php b/include/googleapps.inc.php index 6dae3b1..28d9459 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, @@ -244,7 +247,7 @@ class GoogleAppsAccount // Creates a queue job of the @p type, for the user represented by this // GoogleAppsAccount object, using @p parameters. @p parameters is supposed // to be a one-dimension array of key-value mappings. - // The created job as a 'normal' priority, and is scheduled for immediate + // The created job as a 'immediate' priority, and is scheduled for immediate // execution. private function create_queue_job($type, $parameters) { $parameters["username"] = $this->g_account_name; @@ -252,7 +255,7 @@ class GoogleAppsAccount "INSERT INTO gapps_queue SET q_owner_id = {?}, q_recipient_id = {?}, p_entry_date = NOW(), p_notbefore_date = NOW(), - p_priority = 'normal', + p_priority = 'immediate', j_type = {?}, j_parameters = {?}", S::v('uid'), $this->uid,