Fix comparison operator in CategoryTreePage#execute

This change is a follow up to a892ae21f7.

Change-Id: Ic71c6f0e57fb2680f5653aac1744132c1f8e64fa
This commit is contained in:
Fomafix 2021-09-03 10:45:31 +00:00
parent a892ae21f7
commit 379e090bbc

View file

@ -79,7 +79,7 @@ class CategoryTreePage extends SpecialPage {
$this->target = trim( $par ); $this->target = trim( $par );
} else { } else {
$this->target = trim( $request->getVal( 'target', '' ) ); $this->target = trim( $request->getVal( 'target', '' ) );
if ( $this->target !== '' ) { if ( $this->target === '' ) {
$rootcategory = $this->msg( 'rootcategory' ); $rootcategory = $this->msg( 'rootcategory' );
if ( $rootcategory->exists() ) { if ( $rootcategory->exists() ) {
$this->target = $rootcategory->text(); $this->target = $rootcategory->text();