From 81f4d57775853615633af0f3c8f7a1f139a64265 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Wed, 24 May 2023 21:59:15 +0200 Subject: Updated 2 files (automated) --- includes/components/planner.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/components') diff --git a/includes/components/planner.inc b/includes/components/planner.inc index f07bd47..37687a3 100644 --- a/includes/components/planner.inc +++ b/includes/components/planner.inc @@ -521,9 +521,9 @@ function day($display, $diff): void { if ($diff < 0) $disabled = true; else $dis $relations = []; foreach (scoreOrderGlobal() as $member) { - $relations[$member['id']] = array_unique(array_map(function ($i) { + $relations[$member['id']] = array_values(array_unique(array_map(function ($i) { return explode("/", $i)[1]; - }, [...($member["_metadata"]["marefriends"] ?? []), ...($member["_metadata"]["sisters"] ?? []), ...($member["_metadata"]["caretakers"] ?? []), ...($member["_metadata"]["friends"] ?? []), ...($member["_metadata"]["sexfriends"] ?? [])])); + }, [...($member["_metadata"]["marefriends"] ?? []), ...($member["_metadata"]["sisters"] ?? []), ...($member["_metadata"]["caretakers"] ?? []), ...($member["_metadata"]["friends"] ?? []), ...($member["_metadata"]["sexfriends"] ?? [])]))); } echo(base64_encode(json_encode($relations))) ?>`)); -- cgit