summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-17 10:28:36 +0000
committeralecpl <alec@alec.pl>2010-09-17 10:28:36 +0000
commitb364912fc12ea0fe6b1b0856051cfcc98510d000 (patch)
tree14bca405622a6a67c5e39aea9f238dd651c55ce2 /program/include/rcube_imap.php
parent614c642a4ba8b050ecb26d25d349077f6192aa8d (diff)
- Don't log errors about empty password when connecting to IMAP server (#1487001)
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 043d902bc..3d9253975 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -138,9 +138,10 @@ class rcube_imap
// write error log
else if ($this->conn->error) {
$this->error_code = $this->conn->errornum;
- raise_error(array('code' => 403, 'type' => 'imap',
- 'file' => __FILE__, 'line' => __LINE__,
- 'message' => $this->conn->error), true, false);
+ if ($pass && $user)
+ raise_error(array('code' => 403, 'type' => 'imap',
+ 'file' => __FILE__, 'line' => __LINE__,
+ 'message' => $this->conn->error), true, false);
}
return false;