From 408682f1fc6d5ae005571ab5136573d5b25d733f Mon Sep 17 00:00:00 2001 From: jdarwood007 Date: Thu, 28 May 2026 18:55:36 -0700 Subject: [PATCH] [2.1] Prevent a empty smiley set when parsing smileys --- Sources/Subs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Subs.php b/Sources/Subs.php index bb93caa5b9..cc15ab9030 100644 --- a/Sources/Subs.php +++ b/Sources/Subs.php @@ -3884,7 +3884,7 @@ function parsesmileys(&$message) static $smileyPregSearch = null, $smileyPregReplacements = array(); // No smiley set at all?! - if ($user_info['smiley_set'] == 'none' || trim($message) == '') + if (empty($user_info['smiley_set']) || $user_info['smiley_set'] == 'none' || trim($message) == '') return; // Maybe a mod wants to implement an alternative method (e.g. emojis instead of images)