summaryrefslogtreecommitdiff
path: root/public/emotesets.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-03 01:57:42 +0500
committerilotterytea <iltsu@alright.party>2025-05-03 01:57:42 +0500
commit10b99feeb55e16c15d884ba1ce28ac2882368699 (patch)
treedeacb97d2b12d400992159781f7fa28e979f8909 /public/emotesets.php
parenta8272c3db0153aedc5e1641c4b3fc05666c632e4 (diff)
fix: some errors
Diffstat (limited to 'public/emotesets.php')
-rw-r--r--public/emotesets.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/public/emotesets.php b/public/emotesets.php
index 4e01cba..61a8312 100644
--- a/public/emotesets.php
+++ b/public/emotesets.php
@@ -202,11 +202,11 @@ if (CLIENT_REQUIRES_JSON) {
<section class="content">
<section class="box">
<div class="box navtab">
- <?php echo $emote_sets != null ? ("$total_emotesets emotesets - Page $page/$total_pages") : ('"' . $emote_set["name"] . '" emoteset') ?>
+ <?php echo $emote_set != null ? ('"' . $emote_set["name"] . '" emoteset') : "$total_emotesets emotesets - Page $page/$total_pages" ?>
</div>
<div class="box content items">
<?php
- if ($emote_sets != null) {
+ if (!empty($emote_sets)) {
foreach ($emote_sets as $set_row) {
?>
<a href="/emotesets.php?id=<?php echo $set_row["id"] ?>" class="box">
@@ -240,7 +240,7 @@ if (CLIENT_REQUIRES_JSON) {
?>
<?php
}
- } else {
+ } else if (!empty($emote_set)) {
foreach ($emote_set["emotes"] as $emote_row) {
echo '<a class="box emote" href="/emotes?id=' . $emote_row["id"] . '">';
echo '<img src="/static/userdata/emotes/' . $emote_row["id"] . '/2x.' . $emote_row["ext"] . '" alt="' . $emote_row["code"] . '"/>';
@@ -248,6 +248,8 @@ if (CLIENT_REQUIRES_JSON) {
echo '<p>' . ($emote_row["uploaded_by"] == null ? (ANONYMOUS_DEFAULT_NAME . "*") : $emote_row["uploaded_by"]["username"]) . '</p>';
echo '</a>';
}
+ } else {
+ echo 'No emotesets found...';
}
?>
</section>