Skip to content

Commit

Permalink
Fix the issue with undefined $modSettings['disabledBBC']
Browse files Browse the repository at this point in the history
Fixes #51
Closes #51
  • Loading branch information
dragomano committed Feb 18, 2022
1 parent 20b35e6 commit 072ca3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LightPortal/Areas/ConfigArea.php
Expand Up @@ -805,7 +805,7 @@ private function prepareAliasList()
private function prepareTagsInComments()
{
$disabledBbc = empty($this->modSettings['lp_disabled_bbc_in_comments']) ? [] : explode(',', $this->modSettings['lp_disabled_bbc_in_comments']);
$disabledBbc = array_merge($disabledBbc, explode(',', $this->modSettings['disabledBBC']));
$disabledBbc = isset($this->modSettings['disabledBBC']) ? array_merge($disabledBbc, explode(',', $this->modSettings['disabledBBC'])) : $disabledBbc;

$temp = parse_bbc(false);
$bbcTags = [];
Expand Down

0 comments on commit 072ca3d

Please sign in to comment.