summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-05 13:37:00 +0100
committerMinteck <contact@minteck.org>2023-01-05 13:37:00 +0100
commit721315d9569c6ca793e111a26349f5c2bc8972b3 (patch)
treeedad6c09196d9ad0a16f6dc9f0c4e9cdd4027617 /includes
parent8d107ea7cced37c01cc7fdf24c79d78163a9b3fa (diff)
downloadpluralconnect-721315d9569c6ca793e111a26349f5c2bc8972b3.tar.gz
pluralconnect-721315d9569c6ca793e111a26349f5c2bc8972b3.tar.bz2
pluralconnect-721315d9569c6ca793e111a26349f5c2bc8972b3.zip
Update - This is an automated commit
Diffstat (limited to 'includes')
-rw-r--r--includes/banner.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/banner.inc b/includes/banner.inc
index 4ad0583..5b9aa1b 100644
--- a/includes/banner.inc
+++ b/includes/banner.inc
@@ -477,7 +477,7 @@ function getMemberBannerData(string $id, string $system, bool $french = false) {
"offline" => "pf-$system-$id.webp"
],
'median' => $metadata["median"],
- 'little' => $metadata["little"] === 2,
+ 'little' => $metadata["little"] >= 2,
'name' => $member["display_name"] ?? $member["name"],
'badges' => $badges,
'prefixes' => $prefixes,
@@ -487,9 +487,9 @@ function getMemberBannerData(string $id, string $system, bool $french = false) {
'species' => $speciesList,
'system' => $systemData,
'relations' => [
- 'marefriends' => $marefriends,
- 'sisters' => $sisters,
- 'caretakers' => $caretakers
+ 'marefriends' => $marefriends ?? [],
+ 'sisters' => $sisters ?? [],
+ 'caretakers' => $caretakers ?? []
]
];
} \ No newline at end of file