mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added mysqli support
This commit is contained in:
@@ -108,11 +108,21 @@ foreach ($filelist as $file) {
|
||||
}
|
||||
|
||||
if ($line[0] != '#') {
|
||||
$update = mysql_query($line);
|
||||
if ($config['db']['extension'] == 'mysqli') {
|
||||
|
||||
}
|
||||
else {
|
||||
$update = mysql_query($database_link, $line);
|
||||
}
|
||||
if (!$update) {
|
||||
$err++;
|
||||
if ($debug) {
|
||||
echo mysql_error()."\n";
|
||||
if ($config['db']['extension'] == 'mysqli') {
|
||||
echo mysqli_error($database_link)."\n";
|
||||
}
|
||||
else {
|
||||
echo mysql_error()."\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user