1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-20 12:41:17 +01:00

functions.php: handle null body in remove_modifiers

This commit is contained in:
Zankaria 2024-05-11 11:44:43 +02:00
parent 4c731ba241
commit dd224cea58

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) {