diff options
author | Simon Rettberg | 2017-04-20 14:55:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-20 14:55:24 +0200 |
commit | 73114e4e920f8f0bc364c51d512f23a42b48d8f6 (patch) | |
tree | d87e7b20a01f1a56ff8ef6fa49a2a333a9eb2391 /modules-available | |
parent | [locationinfo] Remove URL from server list, style checkboxes (diff) | |
download | slx-admin-73114e4e920f8f0bc364c51d512f23a42b48d8f6.tar.gz slx-admin-73114e4e920f8f0bc364c51d512f23a42b48d8f6.tar.xz slx-admin-73114e4e920f8f0bc364c51d512f23a42b48d8f6.zip |
[locationinfo] Apply lower bound to refresh timeouts when saving config
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index effe07da..a03d6f1c 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -79,9 +79,15 @@ class Page_LocationInfo extends Page $result['rotation'] = Request::post('rotation', 0, 'int'); $result['scale'] = Request::post('scale', 50, 'int'); $result['switchtime'] = Request::post('switchtime', 20, 'int'); - $result['calupdate'] = Request::post('calupdate', 30, 'int'); + $result['calupdate'] = Request::post('calupdate', 120, 'int'); $result['roomupdate'] = Request::post('roomupdate', 30, 'int'); $result['configupdate'] = Request::post('configupdate', 180, 'int'); + if ($result['roomupdate'] < 30) { + $result['roomupdate'] = 30; + } + if ($result['calupdate'] < 120) { + $result['calupdate'] = 120; + } $serverid = Request::post('serverid', 0, 'int'); $serverlocationid = Request::post('serverlocationid', '', 'string'); |