* Remove spurious "No new messages" message when viewing an
authorArt Cancro <ajc@citadel.org>
Sun, 18 Sep 2005 03:15:15 +0000 (03:15 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 18 Sep 2005 03:15:15 +0000 (03:15 +0000)
  empty address book.

webcit/ChangeLog
webcit/messages.c

index 1cf25bffa68ed8f6961fc2f3d501f6a15c9d7d81..f980d055239e109794ce8ecbd14aa2565f2c354d 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 625.10  2005/09/18 03:15:15  ajc
+* Remove spurious "No new messages" message when viewing an
+  empty address book.
+
 Revision 625.9  2005/09/18 00:53:15  ajc
 * "Reply All" button
 
@@ -2989,3 +2993,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 2383b0482acc49ee8853365be7d56cef02a90d99..86df84f58d28600dd1ddc26500361902a537e429 100644 (file)
@@ -1486,9 +1486,9 @@ void do_addrbook_view(struct addrbookent *addrbook, int num_ab) {
        char tablast_label[SIZ];
 
        if (num_ab == 0) {
-               wprintf("<I>");
+               wprintf("<br /><br /><br /><div align=\"center\"><i>");
                wprintf(_("This address book is empty."));
-               wprintf("</I>\n");
+               wprintf("</i></div>\n");
                return;
        }
 
@@ -1832,7 +1832,7 @@ void readloop(char *oper)
        nummsgs = load_msg_ptrs(cmd, is_summary);
        if (nummsgs == 0) {
 
-               if ((!is_tasks) && (!is_calendar) && (!is_notes)) {
+               if ((!is_tasks) && (!is_calendar) && (!is_notes) && (!is_addressbook)) {
                        wprintf("<em>");
                        if (!strcmp(oper, "readnew")) {
                                wprintf(_("No new messages."));