mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allow empty schema files (#7840)
This commit is contained in:
@@ -85,7 +85,7 @@ try {
|
|||||||
printf('%03d -> %03d ...', $db_rev, $file_rev);
|
printf('%03d -> %03d ...', $db_rev, $file_rev);
|
||||||
|
|
||||||
$err = 0;
|
$err = 0;
|
||||||
if ($data = file_get_contents($file)) {
|
if (($data = file_get_contents($file)) !== false) {
|
||||||
foreach (explode("\n", $data) as $line) {
|
foreach (explode("\n", $data) as $line) {
|
||||||
if (trim($line)) {
|
if (trim($line)) {
|
||||||
d_echo("$line \n");
|
d_echo("$line \n");
|
||||||
|
Reference in New Issue
Block a user