diff options
Diffstat (limited to 'includes/util/banner.inc')
-rw-r--r-- | includes/util/banner.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/util/banner.inc b/includes/util/banner.inc index 944a701..955b93d 100644 --- a/includes/util/banner.inc +++ b/includes/util/banner.inc @@ -22,7 +22,6 @@ function getAge($metadata) { } require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $lang; global $pages; global $isLowerLoggedIn; -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/pronouns.inc"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/Parsedown.php"; $Parsedown = new Parsedown(); @@ -63,7 +62,7 @@ function getMemberBannerData(string $id, string $system, bool $french = false) { $prefixes = []; foreach ($member['proxy_tags'] as $proxy) { - if ($travelling[$member['id']]["travelling"]) { + if (isset($travelling[$member['id']]) && $travelling[$member['id']]["travelling"]) { if (isset($travelling[$member['id']]['equestria']) && $travelling[$member['id']]['equestria']) { $prefixes[] = null; } else { @@ -194,7 +193,7 @@ function getMemberBannerData(string $id, string $system, bool $french = false) { $systemData['full_name'] = $system === "gdapd" ? "Raindrops System" : ($system === $app["other"]["id"] ? $app["other"]["name"] : ($system === "hrbom" ? "Moonglow" : "Cloudburst System")); $systemData['temporary'] = false; - if ($travelling[$member['id']]["travelling"] && !$travelling[$member['id']]["equestria"]) { + if (isset($travelling[$member['id']]) && $travelling[$member['id']]["travelling"] && !$travelling[$member['id']]["equestria"]) { $systemData['page'] = "/" . ($system === "gdapd" ? "cloudburst" : "raindrops"); $systemData['icon'] = getAsset($system === "gdapd" ? "ynmuc" : "gdapd"); $systemData['name'] = $system === "gdapd" ? "Cloudburst" : "Raindrops"; @@ -202,7 +201,7 @@ function getMemberBannerData(string $id, string $system, bool $french = false) { $systemData['temporary'] = true; } - if ($travelling[$member['id']]["travelling"] && $travelling[$member['id']]["equestria"]) { + if (isset($travelling[$member['id']]) && $travelling[$member['id']]["travelling"] && $travelling[$member['id']]["equestria"]) { $systemData['page'] = null; $systemData['icon'] = "/assets/logo/equestria.png"; $systemData['name'] = "Equestria"; |