From 95346bee59e26442430468bb3749ca58e88d0d1e Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Wed, 24 Dec 2008 14:15:17 -0500 Subject: [PATCH] merge from CVS HEAD - don't show a negative number of unseen messages --- imp/lib/Block/newmail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/lib/Block/newmail.php b/imp/lib/Block/newmail.php index 9c2d166dd..c21a4c889 100644 --- a/imp/lib/Block/newmail.php +++ b/imp/lib/Block/newmail.php @@ -62,7 +62,7 @@ class Horde_Block_imp_newmail extends Horde_Block } $more_msgs = count($ids) - $shown; - $text = $more_msgs + $text = ($more_msgs > 0) ? sprintf(ngettext("%d more unseen message...", "%d more unseen messages...", $more_msgs), $more_msgs) : _("Go to your Inbox..."); $html .= '' . $text . ''; -- 2.11.0