Skip to content

Commit

Permalink
Handle null in unix-agent (#14358)
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Sep 16, 2022
1 parent 1e80780 commit 15fd7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/polling/unix-agent.inc.php
Expand Up @@ -144,7 +144,7 @@
echo "\n";
}

foreach (array_keys($agent_data['app']) as $key) {
foreach (array_keys($agent_data['app'] ?? []) as $key) {
if (file_exists("includes/polling/applications/$key.inc.php")) {
d_echo("Enabling $key for " . $device['hostname'] . " if not yet enabled\n");

Expand Down

0 comments on commit 15fd7d0

Please sign in to comment.