mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix missing parameter for mysqli_select_db
This commit is contained in:
@ -20,7 +20,7 @@ if ($connection === false) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$select = mysqli_select_db($config['db_name']);
|
$select = mysqli_select_db($connection, $config['db_name']);
|
||||||
if ($select === false) {
|
if ($select === false) {
|
||||||
echo 'ERROR: Cannot select database: '.mysqli_error($connection)."\n";
|
echo 'ERROR: Cannot select database: '.mysqli_error($connection)."\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Reference in New Issue
Block a user