Save [time_area]s id only if it is not empty.

This commit is contained in:
fendrin 2013-12-20 04:29:31 +01:00
parent 8604edd226
commit de239ae2e5

View file

@ -92,7 +92,8 @@ config tod_manager::to_config() const
t->write(area.add_child("time"));
}
area["current_time"] = i->currentTime;
area["id"] = i->id;
if (!i->id.empty())
area["id"] = i->id;
}
return cfg;
}