diff options
author | Simon Rettberg | 2020-05-15 17:24:16 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-05-15 17:33:22 +0200 |
commit | c4629d8099f224688784b779c24b814431da9ce0 (patch) | |
tree | 027dd41b78ca58adddacdc6e5373914d8b516ffc | |
parent | [rebootcontrol/statistics] Move subnet size handling to hook (diff) | |
download | slx-admin-c4629d8099f224688784b779c24b814431da9ce0.tar.gz slx-admin-c4629d8099f224688784b779c24b814431da9ce0.tar.xz slx-admin-c4629d8099f224688784b779c24b814431da9ce0.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) { |