summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/inc/rebootcontrol.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/rebootcontrol/inc/rebootcontrol.inc.php')
-rw-r--r--modules-available/rebootcontrol/inc/rebootcontrol.inc.php4
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,
]);
}