diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-11 22:52:31 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-11 22:52:31 +0500 |
| commit | 01918a6fd58590fe213a8e0f449a607915808b3b (patch) | |
| tree | 45dfc35b94890e88aeac650df3c3cf859147e100 | |
| parent | b734bb1853802cf8f7a4ea39861cc5c98ffedfda (diff) | |
fix: PDOException if emote upload is anonymous
| -rw-r--r-- | public/emotes/upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
