mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-19 08:03:23 +02:00
Merge pull request #1059 from thomseddon/fix/alert-missing-db
Alert failed database selection in build-base.php
This commit is contained in:
+5
-1
@@ -20,7 +20,11 @@ if ($connection === FALSE) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
mysql_select_db( $config['db_name'] );
|
||||
$select = mysql_select_db( $config['db_name'] );
|
||||
if ($select === FALSE) {
|
||||
echo( "ERROR: Cannot select database: " . mysql_error() . "\n" );
|
||||
exit(1);
|
||||
}
|
||||
|
||||
while( !feof( $sql_fh ) ) {
|
||||
$line = fgetss( $sql_fh );
|
||||
|
||||
Reference in New Issue
Block a user