summaryrefslogtreecommitdiff
path: root/public/emotes/index.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/emotes/index.php
parenta8272c3db0153aedc5e1641c4b3fc05666c632e4 (diff)
fix: some errors
Diffstat (limited to 'public/emotes/index.php')
-rw-r--r--public/emotes/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/emotes/index.php b/public/emotes/index.php
index 2013f9b..3491ab8 100644
--- a/public/emotes/index.php
+++ b/public/emotes/index.php
@@ -154,7 +154,7 @@ if (CLIENT_REQUIRES_JSON) {
<head>
<title><?php
- echo (empty($emotes) ? "Emote " . $emote->get_code() : "Emotes") . ' - ' . INSTANCE_NAME
+ echo ($emote != null ? "Emote " . $emote->get_code() : "Emotes") . ' - ' . INSTANCE_NAME
?></title>
<link rel="stylesheet" href="/static/style.css">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
@@ -177,7 +177,7 @@ if (CLIENT_REQUIRES_JSON) {
<?php display_alert() ?>
<section class="box">
<div class="box navtab">
- <?php echo empty($emotes) ? "Emote - " . $emote->get_code() : "$total_emotes Emotes - Page $page/$total_pages" ?>
+ <?php echo $emote != null ? "Emote - " . $emote->get_code() : "$total_emotes Emotes - Page $page/$total_pages" ?>
</div>
<?php
if (empty($emotes)) { ?>