changed connection around

This commit is contained in:
laf
2015-08-15 17:37:20 +00:00
parent a8f0d91aae
commit 446add9dd6
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ foreach ($filelist as $file) {
if ($line[0] != '#') {
if ($config['db']['extension'] == 'mysqli') {
$update = mysqli_query($connection, $line);
$update = mysqli_query($database_link, $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($connection)."\n";
echo mysqli_error($database_link)."\n";
}
else {
echo mysql_error()."\n";