From 243649628e382bcb2268bc683db80e1a3e2a8ee5 Mon Sep 17 00:00:00 2001 From: Stanislas Date: Mon, 21 Oct 2024 08:21:54 +0200 Subject: [PATCH] Fix(Core): remove uselss and non-functional injection (#396) --- inc/object.class.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/inc/object.class.php b/inc/object.class.php index cd96301..5dbf3b6 100644 --- a/inc/object.class.php +++ b/inc/object.class.php @@ -247,10 +247,6 @@ public static function registerType() array_push($CFG_GLPI['asset_types'], $class); } - if (!in_array($class, $CFG_GLPI['state_types'])) { - array_push($CFG_GLPI['state_types'], $class); - } - if (!in_array($class, $CFG_GLPI['globalsearch_types'])) { array_push($CFG_GLPI['globalsearch_types'], $class); }