[Rt-devel] PATCH: silence warnings Elements/TicketList

Jim Meyer purp at acm.org
Wed Nov 16 17:29:12 EST 2005


Attached. I feel like I should go grep for "NEWLINE" now. ;]

--j
-- 
Jim Meyer, Geek at Large                  jmeyer at dreamworksanimation.com
-- 
Jim Meyer, Geek at Large                                    purp at acm.org
-------------- next part --------------
--- share/html/Elements/TicketList	2005-05-22 15:35:09.000000000 -0700
+++ local/html/Elements/TicketList	2005-11-16 14:01:04.000000000 -0800
@@ -131,9 +131,9 @@
 # Find the maximum number of items in any row, so we can pad the table.
 my $item = 0;
 foreach my $col (@Format) {
     $item++;
-    if ( $col->{title} eq 'NEWLINE' ) {
+    if ( $col->{title} && ($col->{title} eq 'NEWLINE') ) {
         $item = 0;
     }
     else {
         $maxitems = $item if $item > $maxitems;


More information about the Rt-devel mailing list