Skip to content
This repository was archived by the owner on Dec 13, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions www/class/centreonACL.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@ private function checkTopology(): void
// First reading
ksort($childrenLvl3);
// We keep the tree of the first child
$parentsLvl[$parentLvl1][$parentLvl2] =
array_slice($childrenLvl3, 0, 1, true)[0];
$parentsLvl[$parentLvl1][$parentLvl2] = is_array($childrenLvl3)
? array_slice($childrenLvl3, 0, 1, true)[0]
: $childrenLvl3;
/**
* The first child has been processed so we set TRUE
* to delete all the following children
Expand Down