From 3d386daf537e5315a9c44868707312e36993130e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 8 Apr 2017 19:11:45 +0200 Subject: [PATCH] no spaces here ... Signed-off-by: Roland Haeder --- include/bbcode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bbcode.php b/include/bbcode.php index 97b1b6c0c..339159ec8 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -228,7 +228,7 @@ function bb_find_open_close($s, $open, $close, $occurence = 1) { $start_pos = -1; for ($i = 1; $i <= $occurence; $i++) { - if ( $start_pos !== false) { + if ($start_pos !== false) { $start_pos = strpos($s, $open, $start_pos + 1); } } @@ -255,7 +255,7 @@ function get_bb_tag_pos($s, $name, $occurence = 1) { $start_open = -1; for ($i = 1; $i <= $occurence; $i++) { - if ( $start_open !== false) { + if ($start_open !== false) { $start_open = strpos($s, '[' . $name, $start_open + 1); // allow [name= type tags } }