From 10b99feeb55e16c15d884ba1ce28ac2882368699 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 3 May 2025 01:57:42 +0500 Subject: fix: some errors --- public/emotes/index.php | 4 ++-- public/emotesets.php | 8 +++++--- public/users.php | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) (limited to 'public') 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) { <?php - echo (empty($emotes) ? "Emote " . $emote->get_code() : "Emotes") . ' - ' . INSTANCE_NAME + echo ($emote != null ? "Emote " . $emote->get_code() : "Emotes") . ' - ' . INSTANCE_NAME ?> @@ -177,7 +177,7 @@ if (CLIENT_REQUIRES_JSON) {
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) {
diff --git a/public/users.php b/public/users.php index 95a7958..baebcb4 100644 --- a/public/users.php +++ b/public/users.php @@ -5,8 +5,8 @@ include_once "../src/partials.php"; include_once "../src/utils.php"; include_once "../src/accounts.php"; include_once "../src/alert.php"; + authorize_user(); -session_start(); $is_json = isset($_SERVER["HTTP_ACCEPT"]) && $_SERVER["HTTP_ACCEPT"] == "application/json"; -- cgit v1.2.3