diff options
author | RaindropsSys <contact@minteck.org> | 2023-05-07 13:51:31 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-05-07 13:51:31 +0200 |
commit | 761c84c0c17c04113608a20e8401270023741c7e (patch) | |
tree | 1933bd43a4134a9f41f9bae064a8a5cf2ad95af4 /includes | |
parent | 10f4e309040b3a5f8922168c288b64658a4efb8c (diff) | |
download | pluralconnect-761c84c0c17c04113608a20e8401270023741c7e.tar.gz pluralconnect-761c84c0c17c04113608a20e8401270023741c7e.tar.bz2 pluralconnect-761c84c0c17c04113608a20e8401270023741c7e.zip |
Updated 2 files (automated)
Diffstat (limited to 'includes')
-rw-r--r-- | includes/components/planner.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/components/planner.inc b/includes/components/planner.inc index e82fdd6..bf3372a 100644 --- a/includes/components/planner.inc +++ b/includes/components/planner.inc @@ -517,9 +517,9 @@ function day($display, $diff): void { if ($diff < 0) $disabled = true; else $dis $relations = []; foreach (scoreOrderGlobal() as $member) { - $relations[$member['id']] = array_map(function ($i) { + $relations[$member['id']] = array_unique(array_map(function ($i) { return explode("/", $i)[1]; - }, [...($member["_metadata"]["marefriends"] ?? []), ...($member["_metadata"]["sisters"] ?? []), ...($member["_metadata"]["caretakers"] ?? [])]); + }, [...($member["_metadata"]["marefriends"] ?? []), ...($member["_metadata"]["sisters"] ?? []), ...($member["_metadata"]["caretakers"] ?? []), ...($member["_metadata"]["friends"] ?? []), ...($member["_metadata"]["sexfriends"] ?? [])])); } echo(base64_encode(json_encode($relations))) ?>`)); |