diff options
author | Simon Rettberg | 2020-05-15 17:24:16 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-05-15 17:24:16 +0200 |
commit | a9980741c01e9a1af016b5d22d58b2e720e69a24 (patch) | |
tree | ff7d74476c0ba14c4865182a48eb7d58d83f6dcd | |
parent | [remoteaccess] New module (diff) | |
download | slx-admin-a9980741c01e9a1af016b5d22d58b2e720e69a24.tar.gz slx-admin-a9980741c01e9a1af016b5d22d58b2e720e69a24.tar.xz slx-admin-a9980741c01e9a1af016b5d22d58b2e720e69a24.zip |
[rebootcontrol] Set var, do not assume set by caller
-rw-r--r-- | modules-available/rebootcontrol/hooks/client-update.inc.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules-available/rebootcontrol/hooks/client-update.inc.php b/modules-available/rebootcontrol/hooks/client-update.inc.php index 48c16b66..006a5e11 100644 --- a/modules-available/rebootcontrol/hooks/client-update.inc.php +++ b/modules-available/rebootcontrol/hooks/client-update.inc.php @@ -1,6 +1,7 @@ <?php if ($type === '~poweron') { + $NOW = time(); $subnet = Request::post('subnet', false, 'string'); if ($subnet !== false && ($subnet = explode('/', $subnet)) !== false && count($subnet) === 2 && $subnet[0] === $ip && $subnet[1] >= 8 && $subnet[1] < 32) { |