Skip to content

Commit

Permalink
Fix missing import_item array property error
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 authored and cedric-anne committed Apr 29, 2024
1 parent 4e2d5f8 commit 79ceb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RuleImportEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function displayAdditionalRuleCondition($condition, $criteria, $name, $va

if ($criteria['field'] == '_source') {
$tab = ['GLPI' => __('GLPI'), 'NATIVE_INVENTORY' => AutoUpdateSystem::getLabelFor(AutoUpdateSystem::NATIVE_INVENTORY)];
foreach ($PLUGIN_HOOKS['import_item'] as $plug => $types) {
foreach ($PLUGIN_HOOKS['import_item'] ?? [] as $plug => $types) {
if (!Plugin::isPluginActive($plug)) {
continue;
}
Expand Down

0 comments on commit 79ceb4c

Please sign in to comment.