summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-04-23 18:18:30 +0000
committeralecpl <alec@alec.pl>2010-04-23 18:18:30 +0000
commit63bff1dd31363b8e4d974fc0fcba849f3685a08f (patch)
treee0171f70c15a003ede6626d82204ef6e626d71c1
parentd062dbe18cbb2609cd2cc67ae843cf33bb4971cf (diff)
- small cleanup
-rw-r--r--program/include/rcube_imap_generic.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index 0616b5a33..383211a7f 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -394,14 +394,12 @@ class rcube_imap_generic
// process result
$result = $this->parseResult($line);
if ($result == 0) {
- $this->error .= '';
- $this->errornum = 0;
+ $this->errornum = 0;
return $this->fp;
}
- $this->error .= 'Authentication for ' . $user . ' failed (AUTH): "';
- $this->error .= htmlspecialchars($line) . '"';
- $this->errornum = $result;
+ $this->error = "Authentication for $user failed (AUTH): $line";
+ $this->errornum = $result;
return $result;
}
@@ -416,17 +414,15 @@ class rcube_imap_generic
$result = $this->parseResult($line);
if ($result == 0) {
- $this->error .= '';
- $this->errornum = 0;
+ $this->errornum = 0;
return $this->fp;
}
fclose($this->fp);
$this->fp = false;
- $this->error .= 'Authentication for ' . $user . ' failed (LOGIN): "';
- $this->error .= htmlspecialchars($line)."\"";
- $this->errornum = $result;
+ $this->error = "Authentication for $user failed (LOGIN): $line";
+ $this->errornum = $result;
return $result;
}