diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-10 00:18:07 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-10 00:18:07 +0500 |
| commit | b49c1cfc20f2ff49b1e6ab9f4512b8376deb30a7 (patch) | |
| tree | 4f7cc8732ff35b073d6b345c1af0f43c7b9abc94 /emotes/upload.php | |
| parent | c6fdfaf20bbc88be7ada245c358cce0331c41532 (diff) | |
fix: emote visibility
Diffstat (limited to 'emotes/upload.php')
| -rw-r--r-- | emotes/upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emotes/upload.php b/emotes/upload.php index 54d5a15..58836d6 100644 --- a/emotes/upload.php +++ b/emotes/upload.php @@ -447,7 +447,7 @@ if (empty($source)) { $source = null; } -$visibility = clamp(intval($_POST["visibility"], CONFIG['emote']['defaultvisibility']), 0, 2); +$visibility = clamp(isset($_POST["visibility"]) ? intval($_POST["visibility"]) : CONFIG['emote']['defaultvisibility'], 0, 2); if (CONFIG['mod']['approve'] && $visibility == 1 && CONFIG['emote']['defaultvisibility'] != 1) { $visibility = 2; |
