This is actually the table special case, the other was about script being wrapped...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Fri, 24 Mar 2006 16:37:43 +0000 (16:37 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Fri, 24 Mar 2006 16:37:43 +0000 (16:37 +0000)
includes/Parser.php

index 3cc60be..eb1f3f2 100644 (file)
@@ -830,6 +830,9 @@ class Parser
                }
 
                $t = implode ( "\n" , $t ) ;
+               # special case: don't return empty table
+               if($t == "<table>\n<tr><td></td></tr>\n</table>")
+                       $t = '';
                wfProfileOut( $fname );
                return $t ;
        }