mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
Work around for annoying Components errors.
This commit is contained in:
parent
79333c45f6
commit
867586c416
@ -159,8 +159,12 @@ class Component
|
||||
}
|
||||
|
||||
// Sort each component array so the attributes are in order.
|
||||
ksort($RESULT[$RESULT[$COMPONENT['device_id']][$COMPONENT['id']]]);
|
||||
ksort($RESULT[$RESULT[$COMPONENT['device_id']]]);
|
||||
if (!empty($RESULT[$RESULT[$COMPONENT['device_id']][$COMPONENT['id']]])) {
|
||||
ksort($RESULT[$RESULT[$COMPONENT['device_id']][$COMPONENT['id']]]);
|
||||
}
|
||||
if (!empty($RESULT[$RESULT[$COMPONENT['device_id']]])) {
|
||||
ksort($RESULT[$RESULT[$COMPONENT['device_id']]]);
|
||||
}
|
||||
}
|
||||
|
||||
// limit array(start,count)
|
||||
|
Loading…
Reference in New Issue
Block a user