If no ssh keys available then provide an empty array.

This commit is contained in:
2023-09-10 17:23:26 -04:00
parent 319200a677
commit 85af5bd090

View File

@@ -212,7 +212,7 @@ if (!function_exists('add_hook_os_templates')) {
'id' => $sshKey['id'], 'id' => $sshKey['id'],
'name' => $sshKey['name'] 'name' => $sshKey['name']
]; ];
}, $sshKeys['data']), }, $sshKeys['data'] ?? []),
'selectedvalue' => '' 'selectedvalue' => ''
]; ];