mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Null coalesce optional variable in link.bb
This commit is contained in:
@@ -51,7 +51,7 @@ global $pref;
|
|||||||
$parm .= ']';
|
$parm .= ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
list($link,$extras) = explode(" ",$parm);
|
list($link,$extras) = array_pad(explode(" ",$parm), 2, null);
|
||||||
|
|
||||||
if(!$parm) $link = $code_text;
|
if(!$parm) $link = $code_text;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user