(bug 13554) PHP Notice in old pre-processor when list item is empty. Patch by Cedric...
authorRobert Leverington <roberthl@users.mediawiki.org>
Sat, 29 Mar 2008 16:00:33 +0000 (16:00 +0000)
committerRobert Leverington <roberthl@users.mediawiki.org>
Sat, 29 Mar 2008 16:00:33 +0000 (16:00 +0000)
RELEASE-NOTES
includes/Parser_OldPP.php

index 645df14..f08ea7a 100644 (file)
@@ -141,6 +141,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13532) Use proper timestamp call when reverting images
 * (bug 13543) Updated FAQ link in the installer sidebar
 * (bug 13540) Date format in confirmation e-mail now matches message language
+* (bug 13554) PHP Notice in old pre-processor when list item is empty.
 
 
 === API changes in 1.13 ===
index 2aa7e44..7462397 100644 (file)
@@ -2146,7 +2146,7 @@ class Parser_OldPP
                                                $inBlockElem = true;
                                        }
                                } else if ( !$inBlockElem && !$this->mInPre ) {
-                                       if ( ' ' == $t{0} and ( $this->mLastSection == 'pre' or trim($t) != '' ) ) {
+                                       if ( '' != $t and ' ' == $t{0} and ( $this->mLastSection == 'pre' or trim($t) != '' ) ) {
                                                // pre
                                                if ($this->mLastSection != 'pre') {
                                                        $paragraphStack = false;