Fixed typo that blanked out $html (oops)
authorDan
Fri, 15 Aug 2008 20:39:02 -0400
changeset 1 eaeb479c52c9
parent 0 70fa9fdd6f25
child 2 125e913485a2
Fixed typo that blanked out $html (oops)
plugins/CategoryList.php
--- a/plugins/CategoryList.php	Fri Aug 15 10:25:31 2008 -0400
+++ b/plugins/CategoryList.php	Fri Aug 15 20:39:02 2008 -0400
@@ -113,13 +113,14 @@
       
       $have_subcats = true;
       
-      $ticker++;
       if ( $ticker == 3 )
       {
         $ticker = 0;
-        $html = '</tr><tr>';
+        $html .= '</tr><tr>';
         $class = ( $class == 'row1' ) ? 'row2' : 'row1';
       }
+      $ticker++;
+      
       $inner = '<a href="' . makeUrlNS($row['namespace'], $row['page_id'], false, true) . '">' . htmlspecialchars($row['name']) . '</a>';
       $html .= '<td style="width: 33.3%;" class="' . $class . '">' . $inner . '</td>';
     }
@@ -160,13 +161,14 @@
       
       $have_pages = true;
       
-      $ticker++;
       if ( $ticker == 3 )
       {
         $ticker = 0;
-        $html = '</tr><tr>';
+        $html .= '</tr><tr>';
         $class = ( $class == 'row1' ) ? 'row2' : 'row1';
       }
+      $ticker++;
+      
       $inner = '<a href="' . makeUrlNS($row['namespace'], $row['page_id'], false, true) . '">' . htmlspecialchars($row['name']) . '</a>';
       $html .= '<td style="width: 33.3%;" class="' . $class . '">' . $inner . '</td>';
     }