IcingaZone: no endpoint fetching for new zones

This commit is contained in:
Thomas Gelf 2016-02-05 15:38:57 +01:00
parent 31b0e7a180
commit c285dc260d
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class IcingaZone extends IcingaObject
// TODO: Move this away, should be prefetchable:
protected function listEndpoints()
{
if ($this->endpointList === null) {
if ($this->id && $this->endpointList === null) {
$db = $this->getDb();
$query = $db->select()
->from('icinga_endpoint', 'object_name')