diff options
author | alecpl <alec@alec.pl> | 2012-03-21 09:59:41 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-03-21 09:59:41 +0000 |
commit | de4de814b95565782730cd59573e5d32a8019e58 (patch) | |
tree | 31456816a2de811a370833919ba61024926db726 /program/include | |
parent | a0be7a09857446fe5953b6e2ba083bf7c1983663 (diff) |
- Reset variable in loop
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcube_imap_generic.php | 7 |
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)) { |