fixing error msgs and ensuring return status;
This commit is contained in:
parent
14a6f49d58
commit
a7b542ead0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user