fix the problem with opening empty files

This commit is contained in:
nadrad 2022-10-13 10:45:40 +02:00
parent 9ab20b40da
commit be86b68886

5
h-m-m
View file

@ -455,6 +455,11 @@ function load_file(&$mm)
// won't cause any problems.
$new_nodes = list_to_map($lines, 0, 2);
if (empty($new_nodes))
{
load_empty_map($mm);
return;
}
// checking to see how many first-level nodes we have
$first_level_nodes = [];