diff options
author | Jannik Schönartz | 2017-03-22 21:43:45 +0100 |
---|---|---|
committer | Jannik Schönartz | 2017-03-22 21:43:45 +0100 |
commit | 42a1d38f08d080d53ef4b5ad2d05595c28a0aa8a (patch) | |
tree | 93772eee8761a9979a46eee18befd884376fe7a1 /modules-available/locationinfo/page.inc.php | |
parent | Übersetzungen der Credentials eingebaut und nicht fatale errors werden nun i... (diff) | |
download | slx-admin-42a1d38f08d080d53ef4b5ad2d05595c28a0aa8a.tar.gz slx-admin-42a1d38f08d080d53ef4b5ad2d05595c28a0aa8a.tar.xz slx-admin-42a1d38f08d080d53ef4b5ad2d05595c28a0aa8a.zip |
Save Button is now in the footer. Url preview added in the room settings
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index df11f8a9..0f051f07 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -114,9 +114,9 @@ class Page_LocationInfo extends Page error_log("vertical: " . $result['vertical']); error_log("scaledaysauto: " . $result['scaledaysauto']); - Database::exec("INSERT INTO `location_info` (locationid, serverid, serverroomid, config) VALUES (:id, :serverid, :serverroomid, :config) - ON DUPLICATE KEY UPDATE config=:config, serverid=:serverid, serverroomid=:serverroomid", - array('id' => $locationid, 'config' => json_encode($result, true), 'serverid' => $serverid, 'serverroomid' => $serverroomid)); + Database::exec("INSERT INTO `location_info` (locationid, serverid, serverroomid, config, lastcalendarupdate) VALUES (:id, :serverid, :serverroomid, :config, :lastcalendarupdate) + ON DUPLICATE KEY UPDATE config=:config, serverid=:serverid, serverroomid=:serverroomid, lastcalendarupdate=:lastcalendarupdate", + array('id' => $locationid, 'config' => json_encode($result, true), 'serverid' => $serverid, 'serverroomid' => $serverroomid, 'lastcalendarupdate' => 0)); Message::addSuccess('config-saved'); Util::redirect('?do=locationinfo'); |