Skip to content

Commit

Permalink
Null coalesce optional variable in link.bb
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltik committed Jan 18, 2020
1 parent 76c0f7e commit 638412a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e107_core/bbcodes/link.bb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ global $pref;
$parm .= ']';
}

list($link,$extras) = explode(" ",$parm);
list($link,$extras) = array_pad(explode(" ",$parm), 2, null);
if(!$parm) $link = $code_text;
Expand Down

0 comments on commit 638412a

Please sign in to comment.