diff options
author | Minteck <contact@minteck.org> | 2023-01-28 20:31:04 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-01-28 20:31:04 +0100 |
commit | 089d94ff3a34ef022015bf28db0427497acc67ea (patch) | |
tree | 2b7db486ba3cd7ebdd728599bb5af99eafe9bde4 /pages/metadata.inc | |
parent | 9b2f05228357a34a3c0f2950782835dfeb35086e (diff) | |
download | pluralconnect-089d94ff3a34ef022015bf28db0427497acc67ea.tar.gz pluralconnect-089d94ff3a34ef022015bf28db0427497acc67ea.tar.bz2 pluralconnect-089d94ff3a34ef022015bf28db0427497acc67ea.zip |
Updated 7 files and renamed 2 files (automated)
Diffstat (limited to 'pages/metadata.inc')
-rw-r--r-- | pages/metadata.inc | 7 |
1 files changed, 7 insertions, 0 deletions
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"] ?? [], |