From 64ff57ce51901141184351a51fe1d9839d182ca6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 24 Jan 2020 14:28:17 +0100 Subject: [rebootcontrol] Fix WOL via jumphost (missing array index) Lookup of jumphost depends on the hostid of the jumphost in its according array. --- modules-available/rebootcontrol/inc/rebootcontrol.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php index 5e02eafd..f392dcdc 100644 --- a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php +++ b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php @@ -349,7 +349,7 @@ class RebootControl $subnets[$net]['jumphosts'][$row['hostid']] = $row['hostid']; } $row['jobs'] = []; - $jumphosts[] = $row; + $jumphosts[$row['hostid']] = $row; } // Group by subnet foreach ($list as $client) { -- cgit v1.2.3-55-g7522