From 089d94ff3a34ef022015bf28db0427497acc67ea Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 28 Jan 2023 20:31:04 +0100 Subject: Updated 7 files and renamed 2 files (automated) --- pages/metadata.inc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pages/metadata.inc') diff --git a/pages/metadata.inc b/pages/metadata.inc index f3e48d7..870ca42 100644 --- a/pages/metadata.inc +++ b/pages/metadata.inc @@ -77,6 +77,12 @@ if ($member === null) { })); } + if (isset($_GET["sexfriends"])) { + $toUpdate["sexfriends"] = array_values(array_filter(array_map(function ($i) { return trim($i); }, explode(",", $_GET["sexfriends"])), function ($i) { + return !!preg_match("/^(ynmuc|gdapd)\/[a-z]{5}$/m", $i); + })); + } + if (isset($_GET["sisters"])) { $toUpdate["sisters"] = array_values(array_filter(array_map(function ($i) { return trim($i); }, explode(",", $_GET["sisters"])), function ($i) { return !!preg_match("/^(ynmuc|gdapd)\/[a-z]{5}$/m", $i); @@ -124,6 +130,7 @@ if ($member === null) { "bitset" => $metadata["bitset"] ?? 0, "regression" => $metadata["regression"] ?? null, "median" => $metadata["median"] ?? null, + "sexfriends" => $metadata["sexfriends"] ?? [], "marefriends" => $metadata["marefriends"] ?? [], "sisters" => $metadata["sisters"] ?? [], "caretakers" => $metadata["caretakers"] ?? [], -- cgit