From 0124a33037600eed7c4fc8ec99dbc3a148774b5c Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 31 Oct 2014 11:20:17 +0100 Subject: [PATCH] Add method Config::isEmpty() --- library/Icinga/Application/Config.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/Icinga/Application/Config.php b/library/Icinga/Application/Config.php index c7998a0bb..ca377c10a 100644 --- a/library/Icinga/Application/Config.php +++ b/library/Icinga/Application/Config.php @@ -167,4 +167,14 @@ class Config extends Zend_Config { return self::$configDir . DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR); } + + /** + * Is the configuration empty? + * + * @return bool + */ + public function isEmpty() + { + return empty($this->_data); + } }