mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:01:58 +01:00
gui: message preview fix
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
0cf7bfa04a
commit
44760a7e0f
@ -230,6 +230,9 @@ class ModelSearchMessage extends Model {
|
||||
Zend_Mime_Decode::splitMessage($msg, $headers, $body);
|
||||
$boundary = $this->get_boundary($headers['content-type']);
|
||||
|
||||
if(is_array($headers['from'])) { $headers['from'] = $headers['from'][0]; }
|
||||
if(is_array($headers['to'])) { $headers['to'] = $headers['to'][0]; }
|
||||
if(is_array($headers['subject'])) { $headers['subject'] = $headers['subject'][0]; }
|
||||
if(is_array($headers['date'])) { $headers['date'] = $headers['date'][0]; }
|
||||
|
||||
if(isset($headers['from'])) $from .= $this->escape_lt_gt_symbols($headers['from']);
|
||||
|
Loading…
Reference in New Issue
Block a user