(Bug 41178) Check whether content is null or false.
This is a follow-up to I7d629753. Change-Id: Id9e307fcbab5d28fe4fc4ec21b5a4882cffc6841
This commit is contained in:
parent
9739cc97f7
commit
189cc2f0f4
1 changed files with 1 additions and 1 deletions
|
|
@ -471,7 +471,7 @@ class EditPage {
|
|||
$content = $this->getContentObject();
|
||||
|
||||
# Use the normal message if there's nothing to display
|
||||
if ( $this->firsttime && ( $content === false || $content->isEmpty() ) ) {
|
||||
if ( $this->firsttime && ( !$content || $content->isEmpty() ) ) {
|
||||
$action = $this->mTitle->exists() ? 'edit' :
|
||||
( $this->mTitle->isTalkPage() ? 'createtalk' : 'createpage' );
|
||||
throw new PermissionsError( $action, $permErrors );
|
||||
|
|
|
|||
Loading…
Reference in a new issue