diff options
Diffstat (limited to 'modules-available/rebootcontrol')
-rw-r--r-- | modules-available/rebootcontrol/inc/rebootcontrol.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php index 83513081..132ff6ff 100644 --- a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php +++ b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php @@ -414,7 +414,10 @@ class RebootControl $ips = ArrayUtil::flattenByKey($unreachable, 'clientip'); $errors .= "**** WARNING ****\nThe following clients are not reachable with any method\n" . implode("\n", $ips) . "\n"; } - $failed = array_unique(array_merge($unknown, $unreachable)); + // Work around bogus type warnings in PHP 7.0 by un-inlining the $failed assignment + $tmp1 = array_merge($unknown, $unreachable); + $tmp2 = array_unique($tmp1); + $failed = $tmp2; $task = Taskmanager::submit('WakeOnLan', [ 'clients' => $taskClients, 'ssh' => $taskSsh, |