Allow empty schema files (#7840)

This commit is contained in:
Tony Murray 2017-12-01 14:10:32 -06:00 committed by GitHub
parent c3010ce2ba
commit 3dcadcccce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ try {
printf('%03d -> %03d ...', $db_rev, $file_rev);
$err = 0;
if ($data = file_get_contents($file)) {
if (($data = file_get_contents($file)) !== false) {
foreach (explode("\n", $data) as $line) {
if (trim($line)) {
d_echo("$line \n");