From dd224cea58095733b3baef4d5f1c1db05046c184 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sat, 11 May 2024 11:44:43 +0200 Subject: [PATCH] functions.php: handle null body in remove_modifiers --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 53c3b55e..5aabdef4 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -1990,7 +1990,7 @@ function extract_modifiers($body) { } function remove_modifiers($body) { - return preg_replace('@(.+?)@usm', '', $body); + return $body ? preg_replace('@(.+?)@usm', '', $body) : null; } function markup(&$body, $track_cites = false, $op = false) {