diff options
author | Simon Rettberg | 2020-01-10 15:17:17 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-01-10 15:17:17 +0100 |
commit | baadca701c36d9c7fb1e66b6382f83bd2ea557e7 (patch) | |
tree | e98dcf31ccf439ee2438597187d35f765c14bb5f | |
parent | [inc/Util] Fix rounding of large (float) values (diff) | |
download | slx-admin-baadca701c36d9c7fb1e66b6382f83bd2ea557e7.tar.gz slx-admin-baadca701c36d9c7fb1e66b6382f83bd2ea557e7.tar.xz slx-admin-baadca701c36d9c7fb1e66b6382f83bd2ea557e7.zip |
[rebootcontrol] Don't pass string "false" to WOL task
-rw-r--r-- | modules-available/rebootcontrol/inc/rebootcontrol.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php index f287e728..08c3675e 100644 --- a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php +++ b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php @@ -263,7 +263,7 @@ class RebootControl /** * @param string|string[] $macaddr destination mac address(es) * @param string $bcast directed broadcast address to send to - * @param string $passwd optional WOL password, mac address or ipv4 notation + * @param string $passwd optional WOL password; mac address or ipv4 notation * @return array|false task struct, false on error */ public static function wakeDirectly($macaddr, $bcast = false, $passwd = false) @@ -273,7 +273,7 @@ class RebootControl } return Taskmanager::submit('WakeOnLan', [ 'ip' => $bcast, - 'password' => $passwd, + 'password' => $passwd === false ? '' : $passwd, 'macs' => $macaddr, ]); } |