Work around for annoying Components errors.

This commit is contained in:
Tony Murray 2018-09-13 08:18:04 -05:00
parent 79333c45f6
commit 867586c416

View File

@ -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)