(bug 12753) Empty captions in MediaWiki:Sidebar result in PHP errors
authorHuji <huji@users.mediawiki.org>
Thu, 24 Jan 2008 12:52:53 +0000 (12:52 +0000)
committerHuji <huji@users.mediawiki.org>
Thu, 24 Jan 2008 12:52:53 +0000 (12:52 +0000)
RELEASE-NOTES
includes/Skin.php

index a20975d..d17735e 100644 (file)
@@ -336,6 +336,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 6436) Localization of Special:Import XML parser Error message(s).
 * Security fix for API on MSIE
 * (bug 12768) Database query syntax error in maintenance/storage/compressOld.inc
+* (bug 12753) Empty captions in MediaWiki:Sidebar result in PHP errors
 
 == Parser changes in 1.12 ==
 
index fe4bb93..b6d15bd 100644 (file)
@@ -1626,6 +1626,7 @@ END;
                        if (strpos($line, '**') !== 0) {
                                $line = trim($line, '* ');
                                $heading = $line;
+                               if( strlen($heading) == 0) $heading='';
                        } else {
                                if (strpos($line, '|') !== false) { // sanity check
                                        $line = explode( '|' , trim($line, '* '), 2 );