diff options
author | Jannik Schönartz | 2016-11-24 00:02:56 +0100 |
---|---|---|
committer | Jannik Schönartz | 2016-11-24 00:02:56 +0100 |
commit | 8520f0055d5f15ef4cebae4faf727a5f3a5b38c1 (patch) | |
tree | e4b51e3a1d3c85300b3bbb810251866468d31431 /modules-available/locationinfo/page.inc.php | |
parent | frontend changed config querry to new backend (diff) | |
download | slx-admin-8520f0055d5f15ef4cebae4faf727a5f3a5b38c1.tar.gz slx-admin-8520f0055d5f15ef4cebae4faf727a5f3a5b38c1.tar.xz slx-admin-8520f0055d5f15ef4cebae4faf727a5f3a5b38c1.zip |
Added new column for the calendar data and edited all insert into.
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index da30ada9..98246388 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -116,7 +116,7 @@ class Page_LocationInfo extends Page } } - Database::exec("INSERT INTO `location_info` VALUES (:id, :hidden, :openingtime) ON DUPLICATE KEY UPDATE openingtime=:openingtime", + Database::exec("INSERT INTO `location_info` VALUES (:id, :hidden, :openingtime, '', '') ON DUPLICATE KEY UPDATE openingtime=:openingtime", array('id' => $locationid, 'hidden' => false, 'openingtime' => json_encode($result, true))); Message::addSuccess('added-x-entries', $count); @@ -128,7 +128,7 @@ class Page_LocationInfo extends Page } protected function toggleHidden($id, $val) { - Database::exec("INSERT INTO `location_info` VALUES (:id, :hidden, '') ON DUPLICATE KEY UPDATE hidden=:hidden", array('id' => $id, 'hidden' => $val)); + Database::exec("INSERT INTO `location_info` VALUES (:id, :hidden, '', '', '') ON DUPLICATE KEY UPDATE hidden=:hidden", array('id' => $id, 'hidden' => $val)); } protected function getInfoScreenTable() { |