mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:35:12 +00:00
bbcode() - ensure that $options is always an array, as the interface has changed slightly
This commit is contained in:
parent
c86032d4dc
commit
fe401203bd
1 changed files with 4 additions and 0 deletions
|
@ -780,6 +780,10 @@ function parseIdentityAwareHTML($Text) {
|
|||
|
||||
function bbcode($Text, $options = []) {
|
||||
|
||||
if(! is_array($options)) {
|
||||
$options = [];
|
||||
}
|
||||
|
||||
$preserve_nl = ((array_key_exists('preserve_nl',$options)) ? $options['preserve_nl'] : false);
|
||||
$tryoembed = ((array_key_exists('tryoembed',$options)) ? $options['tryoembed'] : true);
|
||||
$cache = ((array_key_exists('cache',$options)) ? $options['cache'] : false);
|
||||
|
|
Loading…
Reference in a new issue