From: aude Date: Mon, 15 Oct 2012 19:08:58 +0000 (+0000) Subject: fix bug 41043, return false on edit page form when section is invalid X-Git-Tag: 1.31.0-rc.0~22005^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=bf41f9d1179a6140193b94370e7f4ee305781cb5;p=lhc%2Fweb%2Fwiklou.git fix bug 41043, return false on edit page form when section is invalid Change-Id: I62bc724ac33ed33368d5607bc96a6b57dc0d41cf --- diff --git a/includes/EditPage.php b/includes/EditPage.php index cc41b02688..4a1e5170f5 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -776,6 +776,9 @@ class EditPage { $this->edittime = $this->mArticle->getTimestamp(); $content = $this->getContentObject( false ); #TODO: track content object?! + if ( $content === false ) { + return false; + } $this->textbox1 = $this->toEditText( $content ); // activate checkboxes if user wants them to be always active