Fixed the connection settings being incorrect

This commit is contained in:
laf
2015-08-15 17:33:41 +00:00
parent 3745ffdc1c
commit a8f0d91aae
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ foreach ($filelist as $file) {
if ($line[0] != '#') {
if ($config['db']['extension'] == 'mysqli') {
$update = mysqli_query($database_link, $line);
$update = mysqli_query($connection, $line);
}
else {
$update = mysql_query($line);
@@ -118,7 +118,7 @@ foreach ($filelist as $file) {
$err++;
if ($debug) {
if ($config['db']['extension'] == 'mysqli') {
echo mysqli_error($database_link)."\n";
echo mysqli_error($connection)."\n";
}
else {
echo mysql_error()."\n";