Commit 40f1389d authored by loiclau's avatar loiclau

fix clapi export with hosts parent relations (#6061)

parent a11d0d78
......@@ -1069,7 +1069,7 @@ class CentreonHost extends CentreonObject
}
$sortedHosts = array();
while ($hostId = array_pop($hosts)) {
if (!in_array($hostId, array_keys($parentShip))) {
if (!in_array((int)$hostId, $parentShip)) {
$sortedHosts[] = $hostId;
} else {
$parents = $parentShip[$hostId];
......
Markdown is supported
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