Skip to content

Commit

Permalink
5609 removed db_name from array on dbquery
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrgay committed Jul 5, 2016
1 parent 9c6bea6 commit 0f5c184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/install/install.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ function create_and_switch_db($db_host, $db_port, $db_login, $db_pwd, $tb_prefix
/* Check if the database that existed is in UTF-8, if not, ask for retry */
at_db_select($db_name, $db);
$sql = "SHOW CREATE DATABASE `%s`";
$row = queryDButf8($sql, array($db_name), true, true, $db);
$row = queryDButf8($sql, $db_name, true, true, $db);

if (!preg_match('/CHARACTER SET utf8/i', $row['Create Database'])){
$sql2 = 'ALTER DATABASE `%s` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci';
Expand Down

1 comment on commit 0f5c184

@atutor
Copy link
Owner

@atutor atutor commented on 0f5c184 Dec 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be what is causing the error message during step 3 of the installation.

Please sign in to comment.