]> git.mxchange.org Git - friendica.git/commitdiff
huh? was in develop branch but not here?
authorRoland Haeder <roland@mxchange.org>
Sat, 8 Apr 2017 17:12:31 +0000 (19:12 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 8 Apr 2017 17:12:31 +0000 (19:12 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/bbcode.php

index 339159ec843ad870bedc17bec0127e8eaaa32b22..c29dcaffae66d72f687cd883e4539f9dc39d827a 100644 (file)
@@ -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;