Unverified Commit 4b8e5b26 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(fusioninventory) Fix PHP error in fusioninventory plugin

issue #6125
Showing with 1 addition and 1 deletion
+1 -1
...@@ -189,7 +189,7 @@ class fiInventory extends simplePlugin ...@@ -189,7 +189,7 @@ class fiInventory extends simplePlugin
return array(); return array();
} }
$macAddress = $this->parent->getBaseObject()->macAddress; $macAddress = $this->parent->getBaseObject()->macAddress;
if ($macAddress != '') { if (!is_array($macAddress) && ($macAddress != '')) {
$macAddress = array($macAddress); $macAddress = array($macAddress);
} }
$ipHostNumber = $this->parent->getBaseObject()->ipHostNumber; $ipHostNumber = $this->parent->getBaseObject()->ipHostNumber;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment