summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-19 12:35:22 +0100
committerSimon Rettberg2017-12-19 12:35:22 +0100
commitcf9cf089478d5713e83339e02d4164efaa30ed28 (patch)
tree7c869df19c48567b698ec8d655de3dc92fcb8ad2 /modules-available/locationinfo/inc
parent[locationinfo] Reload panels when opening times are changed (diff)
downloadslx-admin-cf9cf089478d5713e83339e02d4164efaa30ed28.tar.gz
slx-admin-cf9cf089478d5713e83339e02d4164efaa30ed28.tar.xz
slx-admin-cf9cf089478d5713e83339e02d4164efaa30ed28.zip
[locationinfo] Fix infinite reload loop
Diffstat (limited to 'modules-available/locationinfo/inc')
-rw-r--r--modules-available/locationinfo/inc/infopanel.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/locationinfo/inc/infopanel.inc.php b/modules-available/locationinfo/inc/infopanel.inc.php
index 12b6aec7..edeb9ccf 100644
--- a/modules-available/locationinfo/inc/infopanel.inc.php
+++ b/modules-available/locationinfo/inc/infopanel.inc.php
@@ -12,7 +12,7 @@ class InfoPanel
*/
public static function getConfig($paneluuid, &$config)
{
- $panel = Database::queryFirst('SELECT panelname, panelconfig, paneltype, locationids, lastchange FROM locationinfo_panel WHERE paneluuid = :paneluuid',
+ $panel = Database::queryFirst('SELECT panelname, panelconfig, paneltype, locationids FROM locationinfo_panel WHERE paneluuid = :paneluuid',
compact('paneluuid'));
if ($panel === false) {
@@ -68,7 +68,6 @@ class InfoPanel
}
self::appendOpeningTimes($config['locations'], $lids);
- $config['ts'] = (int)$panel['lastchange'];
$config['locations'] = array_values($config['locations']);
$config['time'] = date('Y-n-j-G-') . (int)date('i') . '-' . (int)(date('s'));