From: addshore Date: Thu, 28 Jul 2016 16:22:05 +0000 (+0100) Subject: Use isset in WikiPage prepareContentForEdit for newContent X-Git-Tag: 1.31.0-rc.0~6236 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=2064ddeecf18ac02e736d92edb0586b28fef53b6;p=lhc%2Fweb%2Fwiklou.git Use isset in WikiPage prepareContentForEdit for newContent This will stop the following: Undefined property: stdClass::$newContent in includes/page/WikiPage.php on line 2056 Bug: T75474 Change-Id: I1bc840faff1b4dc1444434b4edec223950bc6eb1 --- diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index e7352af4e0..46fef10b59 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -2050,7 +2050,7 @@ class WikiPage implements Page, IDBAccessObject { } if ( $this->mPreparedEdit - && $this->mPreparedEdit->newContent + && isset( $this->mPreparedEdit->newContent ) && $this->mPreparedEdit->newContent->equals( $content ) && $this->mPreparedEdit->revid == $revid && $this->mPreparedEdit->format == $serialFormat