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:
parent
4c731ba241
commit
dd224cea58
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user