From a250ce1874e3620e80afbdbbbd15aca64f957339 Mon Sep 17 00:00:00 2001 From: gtbu Date: Wed, 4 May 2022 12:35:45 +0200 Subject: [PATCH] undefined array key ?? null (null coalesce operator:) undefined array key --- include/admin/Addons.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/admin/Addons.php b/include/admin/Addons.php index 1c8d127..c689fbf 100644 --- a/include/admin/Addons.php +++ b/include/admin/Addons.php @@ -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