undefined array key

?? null (null coalesce operator:) undefined array key
This commit is contained in:
gtbu 2022-05-04 12:35:45 +02:00
parent 8de885b111
commit a250ce1874

View file

@ -453,7 +453,7 @@ class Addons extends \gp\admin\Addon\Install{
// sort installed addons by name
$names = [];
foreach($show as $key => $row){
$names[$key] = $row['name'];
$names[$key] = $row['name'] ?? null;
}
$names = array_column($show, 'name');
// array_multisort($names, SORT_ASC, $show); ::: // ExecInfo() Fatal Error: Array sizes are inconsistent