From: <var...@us...> - 2009-02-26 12:58:12
|
Revision: 6574 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6574&view=rev Author: vargenau Date: 2009-02-26 12:45:55 +0000 (Thu, 26 Feb 2009) Log Message: ----------- Do not count columns if table is empty Modified Paths: -------------- trunk/lib/plugin/WikicreoleTable.php Modified: trunk/lib/plugin/WikicreoleTable.php =================================================================== --- trunk/lib/plugin/WikicreoleTable.php 2009-02-26 12:35:15 UTC (rev 6573) +++ trunk/lib/plugin/WikicreoleTable.php 2009-02-26 12:45:55 UTC (rev 6574) @@ -96,12 +96,11 @@ } $nbrows = sizeof($table); - $nbcols = sizeof($table[0]); - // If table is empty, do not generate table markup if ($nbrows == 0) { return HTML::raw(''); } + $nbcols = sizeof($table[0]); for ($i=0; $i<$nbrows; $i++) { for ($j=0; $j<$nbcols; $j++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |