From 73114e4e920f8f0bc364c51d512f23a42b48d8f6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 20 Apr 2017 14:55:24 +0200 Subject: [locationinfo] Apply lower bound to refresh timeouts when saving config --- modules-available/locationinfo/page.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules-available/locationinfo/page.inc.php') 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'); -- cgit v1.2.3-55-g7522