summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-01-24 14:27:12 +0100
committerSimon Rettberg2020-01-24 14:27:12 +0100
commit86207baa6482c15f581fa6a59c7a71504e045a43 (patch)
tree387b6751a72fb92ce1f67fe2e467c956a00ee0e4
parent[sysconfig] Screensaver: Add default texts and minor bug fix (diff)
downloadslx-admin-86207baa6482c15f581fa6a59c7a71504e045a43.tar.gz
slx-admin-86207baa6482c15f581fa6a59c7a71504e045a43.tar.xz
slx-admin-86207baa6482c15f581fa6a59c7a71504e045a43.zip
[rebootcontrol] Try harder to silence notice about ref passing
Only variables should be passed by reference in .../rebootcontrol/inc/rebootcontrol.inc.php on line 295
-rw-r--r--modules-available/rebootcontrol/inc/rebootcontrol.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
index 08c3675e..5e02eafd 100644
--- a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
+++ b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
@@ -289,11 +289,12 @@ class RebootControl
$macs = "'" . implode("' '", $macs) . "'";
$macs = str_replace('-', ':', $macs);
$script = str_replace(['%IP%', '%MACS%'], [$bcast, $macs], $jumphost['script']);
- $task = RebootControl::runScriptInternal($_ = [[
+ $arg = [[
'clientip' => $jumphost['host'],
'port' => $jumphost['port'],
'username' => $jumphost['username'],
- ]], $script, 6, $jumphost['sshkey']);
+ ]];
+ $task = RebootControl::runScriptInternal($arg, $script, 6, $jumphost['sshkey']);
if ($task !== false && isset($task['id'])) {
TaskmanagerCallback::addCallback($task, 'rbcConnCheck', $hostid);
}