From 01918a6fd58590fe213a8e0f449a607915808b3b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 11 May 2025 22:52:31 +0500 Subject: fix: PDOException if emote upload is anonymous --- public/emotes/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/emotes/upload.php b/public/emotes/upload.php index 8b197a2..5fd2faa 100644 --- a/public/emotes/upload.php +++ b/public/emotes/upload.php @@ -394,7 +394,7 @@ if ($is_manual) { } } -if (ACCOUNT_LOG_ACTIONS) { +if (ACCOUNT_LOG_ACTIONS && $uploaded_by != null) { $db->prepare("INSERT INTO actions(user_id, action_type, action_payload) VALUES (?, ?, ?)") ->execute([ $uploaded_by, -- cgit v1.2.3