Fix possibly undefined after index in Text\BBCode
This commit is contained in:
@@ -67,6 +67,7 @@ class BBCode extends BaseObject
|
|||||||
$post["after"] = trim(substr($body, $pos + strlen($data[0])));
|
$post["after"] = trim(substr($body, $pos + strlen($data[0])));
|
||||||
} else {
|
} else {
|
||||||
$post["text"] = trim(str_replace($data[0], "", $body));
|
$post["text"] = trim(str_replace($data[0], "", $body));
|
||||||
|
$post["after"] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$attacheddata = $data[2];
|
$attacheddata = $data[2];
|
||||||
|
|||||||
Reference in New Issue
Block a user