From 25a245a9b72744f5a2117779194d65e10cf53ffa Mon Sep 17 00:00:00 2001 From: Xkeeper Date: Wed, 18 Nov 2020 12:39:44 -0800 Subject: [PATCH] slight tweak to mood tag --- lib/function.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/function.php b/lib/function.php index 4404c8e..01a6a01 100644 --- a/lib/function.php +++ b/lib/function.php @@ -503,6 +503,8 @@ function escape_codeblock($text) { function doreplace2($msg, $options = null, $mood = 0) { // @TODO php7.4 or w/e null coalescing if ($options === null) $options = '0|0'; + $mood = intval($mood); + // options will contain smiliesoff|htmloff $options = explode("|", $options); $smiliesoff = $options[0];