fix tiny sql-query error when using APS and correct DbManager-replacers

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-12-13 08:07:52 +01:00
parent 26b57e2d4d
commit 682defcbcf
2 changed files with 3 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ class DbManagerMySQL {
while ($host = $host_res_stmt->fetch(PDO::FETCH_ASSOC)) {
// as of MySQL 5.0.2 this also revokes privileges. (requires MySQL 4.1.2+)
$drop_stmt = Database::prepare("DROP USER :dbname@:host");
Database::pexecute($drop_stmt, array(':dbname' => $dbname, ':host' => $host['Host']), false);
Database::pexecute($drop_stmt, array('dbname' => $dbname, 'host' => $host['Host']), false);
}
$drop_stmt = Database::prepare("DROP DATABASE IF EXISTS `".$dbname."`");