merge from CVS HEAD - don't show a negative number of unseen messages
authorChuck Hagenbuch <chuck@horde.org>
Wed, 24 Dec 2008 19:15:17 +0000 (14:15 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 24 Dec 2008 19:17:26 +0000 (14:17 -0500)
imp/lib/Block/newmail.php

index 9c2d166..c21a4c8 100644 (file)
@@ -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 .= '<tr><td colspan="2" style="cursor:pointer" align="right" onclick="DimpBase.go(\'folder:INBOX\');return false;">' . $text . '</td></tr>';