diff options
Diffstat (limited to 'installer')
-rw-r--r-- | installer/installer.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/installer/installer.php b/installer/installer.php index 9d890cb5..50ec97a2 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -132,7 +132,9 @@ class installer { return; } - if (!mysql_select_db($config["dbname"]) && !mysql_create_db($config["dbname"])) { + if (!mysql_select_db($config["dbname"]) && + !function_exists("mysql_create_db") || + !mysql_create_db($config["dbname"])) { $errors["Database"] = sprintf( "Database '%s' is not defined and can't be created", $config["dbname"]); |