fixing error msgs and ensuring return status;
这个提交包含在:
@ -74,7 +74,7 @@ class UserHooks {
|
||||
$this->logger->warning(
|
||||
"Updated glesys password for account: " . $email,
|
||||
$this->logContext);
|
||||
else $this->logger->error("Error deleting mail account" . $uid);
|
||||
else $this->logger->error("Error updating mail password for account" . $uid);
|
||||
};
|
||||
}
|
||||
private function createImapFolders($user_data) {
|
||||
@ -169,8 +169,11 @@ class UserHooks {
|
||||
curl_close($ch);
|
||||
$xml = simplexml_load_string($result);
|
||||
$code = $xml->status->code;
|
||||
if ($code != 200)
|
||||
if ($code != 200){
|
||||
$this->logger->warning(
|
||||
"Error: non-200 status: " . $xml->status->text);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户