diff --git a/inc/configfield.class.php b/inc/configfield.class.php index 8b6bc82..7a2d460 100644 --- a/inc/configfield.class.php +++ b/inc/configfield.class.php @@ -87,7 +87,7 @@ static function install(Migration $migration) { $field = new self(); foreach ($GENINVENTORYNUMBER_TYPES as $type) { - if (!countElementsInTable($table, ['itemtype' => $type])) { + if (class_exists($type) && !countElementsInTable($table, ['itemtype' => $type])) { $input["plugin_geninventorynumber_configs_id"] = 1; $input["itemtype"] = $type; $input["template"] = "<#######>";