Skip to content

Commit

Permalink
system: 'ssh' probably empty, issue with PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Nov 7, 2022
1 parent 0ae0c2f commit 7989daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/www/system_advanced_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
$pconfig['primaryconsole'] = $config['system']['primaryconsole'];
$pconfig['secondaryconsole'] = $config['system']['secondaryconsole'];
$pconfig['autologout'] = $config['system']['autologout'];
$pconfig['enablesshd'] = $config['system']['ssh']['enabled'];
$pconfig['enablesshd'] = $config['system']['ssh']['enabled'] ?? null;
$pconfig['sshport'] = $config['system']['ssh']['port'];
$pconfig['sshinterfaces'] = !empty($config['system']['ssh']['interfaces']) ? explode(',', $config['system']['ssh']['interfaces']) : array();
$pconfig['ssh-kex'] = !empty($config['system']['ssh']['kex']) ? explode(',', $config['system']['ssh']['kex']) : array();
Expand Down

0 comments on commit 7989daa

Please sign in to comment.