summaryrefslogtreecommitdiff
path: root/includes/util/banner.inc
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-18 11:34:36 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-18 11:34:36 +0100
commit9337aae8b1c87fad34884dacd5cd79d9591c60db (patch)
tree5340f9fa67cd6236e4c879f0057d51d0b1e21361 /includes/util/banner.inc
parent953ddd82e48dd206cef5ac94456549aed13b3ad5 (diff)
downloadpluralconnect-9337aae8b1c87fad34884dacd5cd79d9591c60db.tar.gz
pluralconnect-9337aae8b1c87fad34884dacd5cd79d9591c60db.tar.bz2
pluralconnect-9337aae8b1c87fad34884dacd5cd79d9591c60db.zip
Updated 39 files, added 86 files, deleted 40 files and renamed 2 files (automated)
Diffstat (limited to 'includes/util/banner.inc')
-rw-r--r--includes/util/banner.inc7
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";