summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-03-21 09:59:41 +0000
committeralecpl <alec@alec.pl>2012-03-21 09:59:41 +0000
commitde4de814b95565782730cd59573e5d32a8019e58 (patch)
tree31456816a2de811a370833919ba61024926db726 /program/include
parenta0be7a09857446fe5953b6e2ba083bf7c1983663 (diff)
- Reset variable in loop
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap_generic.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index f286ec6bd..a664c5b57 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -2079,9 +2079,10 @@ class rcube_imap_generic
$result[$id]->subject = '';
$result[$id]->messageID = 'mid:' . $id;
- $lines = array();
- $line = substr($line, strlen($m[0]) + 2);
- $ln = 0;
+ $headers = null;
+ $lines = array();
+ $line = substr($line, strlen($m[0]) + 2);
+ $ln = 0;
// get complete entry
while (preg_match('/\{([0-9]+)\}\r\n$/', $line, $m)) {