Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | } |
90 | 90 | |
91 | 91 | class ExtMobileFrontend { |
92 | | - const VERSION = '0.5.94'; |
| 92 | + const VERSION = '0.5.95'; |
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @var DOMDocument |
— | — | @@ -1217,7 +1217,7 @@ |
1218 | 1218 | if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) { |
1219 | 1219 | $userlogin = $this->doc->getElementById( 'userloginForm' ); |
1220 | 1220 | |
1221 | | - if ( !empty( $userlogin ) && get_class($userlogin) === 'DOMElement' ) { |
| 1221 | + if ( $userlogin && get_class($userlogin) === 'DOMElement' ) { |
1222 | 1222 | $firstHeading = $this->doc->getElementById( 'firstHeading' ); |
1223 | 1223 | if ( !empty( $firstHeading ) ) { |
1224 | 1224 | $firstHeading->nodeValue = ''; |
— | — | @@ -1308,7 +1308,7 @@ |
1309 | 1309 | } |
1310 | 1310 | |
1311 | 1311 | if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) { |
1312 | | - if ( !empty( $userlogin ) && get_class($userlogin) === 'DOMElement' ) { |
| 1312 | + if ( $userlogin && get_class($userlogin) === 'DOMElement' ) { |
1313 | 1313 | $login = $this->renderLogin(); |
1314 | 1314 | $loginNode = $this->doc->importNode( $login, true ); |
1315 | 1315 | $userlogin->appendChild( $loginNode ); |