X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FPreprocessor_DOM.php;h=3bcd012f4f598b73785f590c997922312d38f764;hb=734a969d5506a80ceabfa2bc61bda79f76d73d5f;hp=f4e4efa7240661dcf43efeb82628be2952492b01;hpb=988af574cb66f560f37feb2700a514a2287d445f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index f4e4efa724..3bcd012f4f 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -878,7 +878,7 @@ class PPDStack { } public function pop() { - if ( !count( $this->stack ) ) { + if ( $this->stack === [] ) { throw new MWException( __METHOD__ . ': no elements remaining' ); } $temp = array_pop( $this->stack ); @@ -902,7 +902,7 @@ class PPDStack { * @return array */ public function getFlags() { - if ( !count( $this->stack ) ) { + if ( $this->stack === [] ) { return [ 'findEquals' => false, 'findPipe' => false,