- if ( isset( $this->mParams['max'] ) ) {
- if ( count( $namespaces ) > $this->mParams['max'] ) {
- return $this->msg( 'htmlform-int-toohigh', $this->mParams['max'] );
- }
+ if ( isset( $this->mParams['max'] ) && ( count( $namespaces ) > $this->mParams['max'] ) ) {
+ return $this->msg( 'htmlform-int-toohigh', $this->mParams['max'] );