X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=1a304005bd4e146f772bb3f8b11aef5eb3a8519c;hb=1681f4d9d7070f1bfc4f9f5ce46b39caa8142537;hp=b88e1f720e8a4f20166f64cd12e91bb641e62573;hpb=ca6e7f053bbd00316c35105b1a8c50789a69f9ab;p=squirrelmail.git diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index b88e1f72..1a304005 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -12,6 +12,8 @@ * $Id$ */ +require_once('../functions/strings.php'); + define('PG_SEL_MAX', 10); /* Default value for page_selector_max. */ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start_msg, $where, $what) { @@ -41,8 +43,9 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start * because you can have multi receiver. */ $sendersName = split(',', $msg['FROM']); + $senderName = ''; for ($index = 0 ; $index < count($sendersName) ; $index++) { - if (strlen($senderName) > 0) { + if ($senderName != '') { $senderName .= ', '; } $senderName .= sqimap_find_displayable_name($sendersName[$index]);