summaryrefslogtreecommitdiff
path: root/includes/functions.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-02 20:29:01 +0100
committerMinteck <contact@minteck.org>2023-01-02 20:29:01 +0100
commite72d0adbcd7e69928a1ef380c7a841c160284c68 (patch)
tree1b9b9c29bb4fd39b6bdf577375bb91be3b9d6be1 /includes/functions.inc
parentc9de96328e59816ff4867abf5feab9fb9bf29511 (diff)
downloadpluralconnect-e72d0adbcd7e69928a1ef380c7a841c160284c68.tar.gz
pluralconnect-e72d0adbcd7e69928a1ef380c7a841c160284c68.tar.bz2
pluralconnect-e72d0adbcd7e69928a1ef380c7a841c160284c68.zip
Update
Diffstat (limited to 'includes/functions.inc')
-rw-r--r--includes/functions.inc13
1 files changed, 1 insertions, 12 deletions
diff --git a/includes/functions.inc b/includes/functions.inc
index 915d41b..bdc961b 100644
--- a/includes/functions.inc
+++ b/includes/functions.inc
@@ -196,18 +196,7 @@ if (!function_exists("getMiniName")) {
if (!function_exists("withCaretakersDown")) {
function withCaretakersDown(array $ordered): array {
- $caretakersNo = [];
- $caretakersYes = [];
-
- foreach ($ordered as $item) {
- if ($item["_metadata"]["little"] === 2) {
- $caretakersYes[] = $item;
- } else {
- $caretakersNo[] = $item;
- }
- }
-
- return [...$caretakersNo, ...$caretakersYes];
+ return $ordered;
}
}