From 53f32aad9117afe426f36600ad54e73ab57f96fe Mon Sep 17 00:00:00 2001 From: loiclau Date: Tue, 24 Oct 2017 11:19:41 +0200 Subject: [PATCH] fix(clapi) authorize id 0 --- www/class/centreon-clapi/centreonCentbrokerCfg.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/class/centreon-clapi/centreonCentbrokerCfg.class.php b/www/class/centreon-clapi/centreonCentbrokerCfg.class.php index ace1a6456ad..c76e8794195 100644 --- a/www/class/centreon-clapi/centreonCentbrokerCfg.class.php +++ b/www/class/centreon-clapi/centreonCentbrokerCfg.class.php @@ -267,7 +267,7 @@ private function listFlow($configId, $tagName, $args) */ private function getFlow($configId, $tagName, $args) { - if (!isset($args[1]) || !$args[1]) { + if (!isset($args[1]) || $args[1] == '') { throw new CentreonClapiException(self::MISSINGPARAMETER); }