Fix possibly undefined after index in Text\BBCode
This commit is contained in:
parent
05d8bf6b54
commit
97eb2ba053
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ class BBCode extends BaseObject
|
|||
$post["after"] = trim(substr($body, $pos + strlen($data[0])));
|
||||
} else {
|
||||
$post["text"] = trim(str_replace($data[0], "", $body));
|
||||
$post["after"] = '';
|
||||
}
|
||||
|
||||
$attacheddata = $data[2];
|
||||
|
|
Loading…
Reference in a new issue