Index: trunk/phase3/includes/installer/WebInstallerPage.php |
— | — | @@ -587,7 +587,7 @@ |
588 | 588 | $msg = false; |
589 | 589 | $pwd = $this->getVar( '_AdminPassword' ); |
590 | 590 | $user = User::newFromName( $cname ); |
591 | | - $valid = $user->getPasswordValidity( $pwd ); |
| 591 | + $valid = $user && $user->getPasswordValidity( $pwd ); |
592 | 592 | if ( strval( $pwd ) === '' ) { |
593 | 593 | # $user->getPasswordValidity just checks for $wgMinimalPasswordLength. |
594 | 594 | # This message is more specific and helpful. |