generateUpgradeKey() could produce NULL return, which means a fatal error when
authorPlatonides <platonides@users.mediawiki.org>
Tue, 25 Jan 2011 23:37:11 +0000 (23:37 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 25 Jan 2011 23:37:11 +0000 (23:37 +0000)
Call to a member function isOk() in includes/installer/WebInstallerPage.php on line 1039

includes/installer/Installer.php

index 507ba2e..9206b36 100644 (file)
@@ -1352,6 +1352,7 @@ abstract class Installer {
                if ( strval( $this->getVar( 'wgUpgradeKey' ) ) === '' ) {
                        return $this->generateSecret( 'wgUpgradeKey', 16 );
                }
+               return Status::newGood();
        }
 
        /**