From 78b9cf97e0d6a9306968bdf96ee66ebcee93e0b8 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 8 Apr 2017 19:12:31 +0200 Subject: [PATCH] huh? was in develop branch but not here? Signed-off-by: Roland Haeder --- include/bbcode.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/bbcode.php b/include/bbcode.php index 339159ec8..c29dcaffa 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -307,8 +307,9 @@ function bb_tag_preg_replace($pattern, $replace, $name, $s) { $start = substr($string, 0, $pos['start']['open']); $subject = substr($string, $pos['start']['open'], $pos['end']['close'] - $pos['start']['open']); $end = substr($string, $pos['end']['close']); - if ($end === false) + if ($end === false) { $end = ''; + } $subject = preg_replace($pattern, $replace, $subject); $string = $start . $subject . $end;