summaryrefslogtreecommitdiff
path: root/includes/banner.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-12-21 18:09:20 +0100
committerMinteck <contact@minteck.org>2022-12-21 18:09:20 +0100
commitae766d28c07628e71629a72452261898ea72057a (patch)
tree79bf1110a59f8339ce685b80c12d18f3650700d8 /includes/banner.inc
parent9d5e468be5e58269f8730305745eee29b9d957d5 (diff)
downloadpluralconnect-ae766d28c07628e71629a72452261898ea72057a.tar.gz
pluralconnect-ae766d28c07628e71629a72452261898ea72057a.tar.bz2
pluralconnect-ae766d28c07628e71629a72452261898ea72057a.zip
Update - This is an automated commit
Diffstat (limited to 'includes/banner.inc')
-rw-r--r--includes/banner.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/banner.inc b/includes/banner.inc
index 4678a5a..1d33b43 100644
--- a/includes/banner.inc
+++ b/includes/banner.inc
@@ -66,7 +66,11 @@ function getMemberBannerData(string $id, string $system, bool $french = false) {
$prefixes = [];
foreach ($member['proxy_tags'] as $proxy) {
if ($travelling[$member['id']]["travelling"]) {
- $prefixes[] = "+" . $proxy["prefix"] . ($proxy["suffix"] !== "" && $proxy["suffix"] !== null ? "..." . $proxy["suffix"] : "");
+ if (isset($travelling[$member['id']]['equestria']) && $travelling[$member['id']]['equestria']) {
+ $prefixes[] = null;
+ } else {
+ $prefixes[] = "+" . $proxy["prefix"] . ($proxy["suffix"] !== "" && $proxy["suffix"] !== null ? "..." . $proxy["suffix"] : "");
+ }
} else {
$prefixes[] = $proxy["prefix"] . ($proxy["suffix"] !== "" && $proxy["suffix"] !== null ? "..." . $proxy["suffix"] : "");
}