From 0ffedc9a276d11e45363a20a48f8ba4655f209cd Mon Sep 17 00:00:00 2001
From: loiclau <loic.lau@gmail.com>
Date: Mon, 2 Oct 2017 15:01:08 +0200
Subject: [PATCH] fix(api rest) rtDowntime style object

---
 www/class/centreon-clapi/centreonRtDowntime.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/class/centreon-clapi/centreonRtDowntime.class.php b/www/class/centreon-clapi/centreonRtDowntime.class.php
index 0022b068d3..52f1c7c476 100644
--- a/www/class/centreon-clapi/centreonRtDowntime.class.php
+++ b/www/class/centreon-clapi/centreonRtDowntime.class.php
@@ -173,7 +173,7 @@ class CentreonRtDowntime extends CentreonObject
     {
         if ($parameters !== '') {
             $parsedParameters = $this->parseShowparameters($parameters);
-            if ($parsedParameters['type'] !== 'HOST' && $parsedParameters['type'] !== 'SVC') {
+            if (strtoupper($parsedParameters['type']) !== 'HOST' && strtoupper($parsedParameters['type']) !== 'SVC') {
                 throw new CentreonClapiException(self::OBJECT_NOT_FOUND);
             }
             $method = 'show' . ucfirst($parsedParameters['type']);
-- 
GitLab