MINOR Fixed PHP notice during SS installation

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@83583 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-08-03 11:18:28 +00:00 committed by Sam Minnee
parent 008acc99a0
commit e3efb0f554

View File

@ -718,7 +718,7 @@ class Security extends Controller {
// but can be helpful for migrating legacy user-sets into a SilverStripe application.
// Since DB::getConn() doesn't exist yet, we need to look at $databaseConfig. Gack!
global $databaseConfig;
if($databaseConfig['type'] == 'MySQLDatabase') {
if(isset($databaseConfig['type']) && $databaseConfig['type'] == 'MySQLDatabase') {
$result[] = 'password';
$result[] = 'old_password';
}