1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Null coalesce optional variable in link.bb

This commit is contained in:
Nick Liu 2020-01-18 13:36:45 +01:00
parent 76c0f7ecdd
commit 638412af09
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -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;