diff --git a/InputBox.classes.php b/InputBox.classes.php index 1b34519b..be424ac1 100644 --- a/InputBox.classes.php +++ b/InputBox.classes.php @@ -333,8 +333,8 @@ class InputBox { 'action' => $wgScript, 'method' => 'get' ); - if( isset( $this->mId ) ) { - $createBoxParams['id'] = Sanitizer::escapeId( $this->mId ); + if( $this->mID !== '' ) { + $createBoxParams['id'] = Sanitizer::escapeId( $this->mID ); } $htmlOut .= Xml::openElement( 'form', $createBoxParams ); $htmlOut .= Xml::openElement( 'input', @@ -515,8 +515,8 @@ class InputBox { 'action' => $wgScript, 'method' => 'get' ); - if( isset( $this->mId ) ) { - $commentFormParams['id'] = Sanitizer::escapeId( $this->mId ); + if( $this->mID !== '' ) { + $commentFormParams['id'] = Sanitizer::escapeId( $this->mID ); } $htmlOut .= Xml::openElement( 'form', $commentFormParams ); $htmlOut .= Xml::openElement( 'input',