fixed create database statement
This commit is contained in:
parent
c1cc6449c5
commit
f5458589c5
@ -126,7 +126,7 @@ class Database implements TimerListener {
|
||||
$this->maniaControl->log("Database '{$this->config->name}' doesn't exit! Trying to create it...");
|
||||
|
||||
// Create database
|
||||
$databaseQuery = "CREATE DATABASE '" . $this->mysqli->escape_string($this->config->name) . "';";
|
||||
$databaseQuery = "CREATE DATABASE " . $this->mysqli->escape_string($this->config->name) . ";";
|
||||
$this->mysqli->query($databaseQuery);
|
||||
if ($this->mysqli->error) {
|
||||
$this->maniaControl->quit($this->mysqli->error, true);
|
||||
|
Loading…
Reference in New Issue
Block a user