16 lines
702 B
Diff
16 lines
702 B
Diff
diff -Nru pmwiki-2.1.26.orig/pmwiki.php pmwiki-2.1.26/pmwiki.php
|
|
--- pmwiki-2.1.26.orig/pmwiki.php 2006-11-04 10:56:15.000000000 +0100
|
|
+++ pmwiki-2.1.26/pmwiki.php 2006-11-04 10:55:42.000000000 +0100
|
|
@@ -1097,7 +1097,10 @@
|
|
if ($t=='caption') return "<:table,1>$y";
|
|
if (@$MarkupFrame[0]['cs'][0] != 'table') $rowcount = 0; else $rowcount++;
|
|
$FmtV['$TableRowCount'] = $rowcount + 1;
|
|
- $FmtV['$TableRowIndex'] = ($rowcount % $TableRowIndexMax) + 1;
|
|
+ if ($TableRowIndexMax > 0)
|
|
+ $FmtV['$TableRowIndex'] = ($rowcount % $TableRowIndexMax) + 1;
|
|
+ else
|
|
+ $FmtV['$TableRowIndex'] = $rowcount + 1;
|
|
$trattr = FmtPageName($TableRowAttrFmt, '');
|
|
return "<:table,1><tr $trattr>$y</tr>";
|
|
}
|