summaryrefslogtreecommitdiff
path: root/includes/functions.inc
diff options
context:
space:
mode:
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;