Merge pull request #1059 from thomseddon/fix/alert-missing-db

Alert failed database selection in build-base.php
This commit is contained in:
Neil Lathwood
2015-05-18 21:57:09 +01:00

View File

@ -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 );