[-] IN : Fixed bug with database creation
This commit is contained in:
@@ -63,8 +63,8 @@ class DbMySQLiCore extends Db
|
||||
else
|
||||
$link = @new mysqli($host, $user, $password);
|
||||
$success = $link->query('CREATE DATABASE `'.bqSQL($dbname).'`');
|
||||
if ($dropit)
|
||||
$success &= $link->query('DROP DATABASE `'.bqSQL($dbname).'`');
|
||||
if ($dropit && ($link->exec('DROP DATABASE `'.bqSQL($dbname).'`') !== false))
|
||||
return true;
|
||||
return $success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user