summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_imap_generic.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-04-23 18:18:30 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-04-23 18:18:30 +0000
commit91d08c769d520e81852f7e35fe7303e4eaa69776 (patch)
tree765f2100b58a560b91c89fc9e8a8389e969f96fe /roundcubemail/program/include/rcube_imap_generic.php
parent1f5a0df59a77652a285b0f5b749f15463d52beb9 (diff)
- small cleanup
git-svn-id: https://svn.roundcube.net/trunk@3561 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap_generic.php')
-rw-r--r--roundcubemail/program/include/rcube_imap_generic.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/roundcubemail/program/include/rcube_imap_generic.php b/roundcubemail/program/include/rcube_imap_generic.php
index 0616b5a33..383211a7f 100644
--- a/roundcubemail/program/include/rcube_imap_generic.php
+++ b/roundcubemail/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;
}