From 85af5bd090ca7fc77729e844ae8e071da0f3d53e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 10 Sep 2023 17:23:26 -0400 Subject: [PATCH] If no ssh keys available then provide an empty array. --- hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks.php b/hooks.php index eaaab21..3dd6c01 100644 --- a/hooks.php +++ b/hooks.php @@ -212,7 +212,7 @@ if (!function_exists('add_hook_os_templates')) { 'id' => $sshKey['id'], 'name' => $sshKey['name'] ]; - }, $sshKeys['data']), + }, $sshKeys['data'] ?? []), 'selectedvalue' => '' ];