1
1
Fork 0

no spaces here ...

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-04-08 19:11:45 +02:00
parent 3220234693
commit 3d386daf53
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -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
}
}