summaryrefslogtreecommitdiff
path: root/includes/functions.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-22 22:06:58 +0100
committerMinteck <contact@minteck.org>2023-02-22 22:06:58 +0100
commit6563d542af0930ebb6b2f9b71f2b7538d7467665 (patch)
tree2d0c1f34382ab3c1fc4a7422cc87be2a5714356e /includes/functions.inc
parent737f5008f8a4a011c832e83f6b2019d3dc27dbd0 (diff)
downloadpluralconnect-6563d542af0930ebb6b2f9b71f2b7538d7467665.tar.gz
pluralconnect-6563d542af0930ebb6b2f9b71f2b7538d7467665.tar.bz2
pluralconnect-6563d542af0930ebb6b2f9b71f2b7538d7467665.zip
Updated 8 files (automated)
Diffstat (limited to 'includes/functions.inc')
-rw-r--r--includes/functions.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions.inc b/includes/functions.inc
index 1345db1..9bc9ba6 100644
--- a/includes/functions.inc
+++ b/includes/functions.inc
@@ -303,7 +303,7 @@ if (!function_exists("showSystem")) {
$i["system"] = $id;
$i["equestria"] = $travelling[$i['id']]['travelling'] && $travelling[$i['id']]['equestria'];
return $i;
- }, array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$id/members.json"), true), function ($i) use ($travelling) {
+ }, array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . (isset($app["other"]) && $id === $app["other"]["id"] ? "other" : $id) . "/members.json"), true), function ($i) use ($travelling) {
return !(isset($travelling[$i['id']]) && $travelling[$i['id']]['travelling'] && (!isset($travelling[$i['id']]['equestria']) || !$travelling[$i['id']]['equestria']));
})), ...array_map(function ($i) use ($id) {
$i["travelling"] = true;