From 65eb9ec8654f6dacf64cd82d8f7e8b0b2c8091a7 Mon Sep 17 00:00:00 2001 From: Robert Leverington Date: Sat, 29 Mar 2008 16:00:33 +0000 Subject: [PATCH] (bug 13554) PHP Notice in old pre-processor when list item is empty. Patch by Cedric Nilly. --- RELEASE-NOTES | 1 + includes/Parser_OldPP.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 645df1441d..f08ea7a373 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Parser_OldPP.php b/includes/Parser_OldPP.php index 2aa7e44b23..7462397bb1 100644 --- a/includes/Parser_OldPP.php +++ b/includes/Parser_OldPP.php @@ -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; -- 2.20.1