Commit d6de0189 authored by mku's avatar mku

ZP-323 #comment Merge contribution - Fix missing {} in imap.php #time 5m

git-svn-id: https://z-push.org/svn/z-push/trunk@1570 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 707f53a5
...@@ -123,14 +123,16 @@ class BackendIMAP extends BackendDiff { ...@@ -123,14 +123,16 @@ class BackendIMAP extends BackendDiff {
// list all errors // list all errors
$errors = imap_errors(); $errors = imap_errors();
if (is_array($errors)) { if (is_array($errors)) {
foreach ($errors as $e) foreach ($errors as $e) {
if (stripos($e, "fail") !== false) if (stripos($e, "fail") !== false) {
$level = LOGLEVEL_WARN; $level = LOGLEVEL_WARN;
else }
else {
$level = LOGLEVEL_DEBUG; $level = LOGLEVEL_DEBUG;
}
ZLog::Write($level, "BackendIMAP->Logoff(): IMAP said: " . $e); ZLog::Write($level, "BackendIMAP->Logoff(): IMAP said: " . $e);
} }
}
@imap_close($this->mbox); @imap_close($this->mbox);
ZLog::Write(LOGLEVEL_DEBUG, "BackendIMAP->Logoff(): IMAP connection closed"); ZLog::Write(LOGLEVEL_DEBUG, "BackendIMAP->Logoff(): IMAP connection closed");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment