functions.php: handle null body in remove_modifiers

This commit is contained in:
Zankaria committed 2024-05-11 11:48:01 +02:00
1 parent 4c731ba241
commit dd224cea58
1 file changed
+1 -1
+1 -1
View File
@@ -1990,7 +1990,7 @@ function extract_modifiers($body) {
}
function remove_modifiers($body) {
return preg_replace('@<tinyboard ([\w\s]+)>(.+?)</tinyboard>@usm', '', $body);
return $body ? preg_replace('@<tinyboard ([\w\s]+)>(.+?)</tinyboard>@usm', '', $body) : null;
}
function markup(&$body, $track_cites = false, $op = false) {