mirror of https://github.com/Icinga/icinga2.git
Fix Zone::IsGlobal()
This commit is contained in:
parent
020bd060c5
commit
a362b5c14c
|
@ -83,12 +83,7 @@ bool Zone::IsChildOf(const Zone::Ptr& zone)
|
|||
|
||||
bool Zone::IsGlobal(void)
|
||||
{
|
||||
Zone::Ptr zone = GetSelf();
|
||||
|
||||
if (!zone)
|
||||
return false;
|
||||
|
||||
return zone->GetGlobal();
|
||||
return GetGlobal();
|
||||
}
|
||||
|
||||
Zone::Ptr Zone::GetLocalZone(void)
|
||||
|
|
Loading…
Reference in New Issue