diff options
author | Christian Hofmaier | 2020-12-08 14:16:37 +0100 |
---|---|---|
committer | Christian Hofmaier | 2020-12-08 14:16:37 +0100 |
commit | 0480d8aff79fb45034a32d594501cd3d325cb1e2 (patch) | |
tree | 7ad14256f23959cc5e4f11a4690cb9ee4fdb9a12 /modules-available/locations | |
parent | [locations] Add scheduler to openingtimes modal (diff) | |
download | slx-admin-0480d8aff79fb45034a32d594501cd3d325cb1e2.tar.gz slx-admin-0480d8aff79fb45034a32d594501cd3d325cb1e2.tar.xz slx-admin-0480d8aff79fb45034a32d594501cd3d325cb1e2.zip |
[rebootcontrol] rename scheduler table and associated queries
Diffstat (limited to 'modules-available/locations')
-rw-r--r-- | modules-available/locations/pages/details.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/locations/pages/details.inc.php b/modules-available/locations/pages/details.inc.php index 81c2f2fa..aa279570 100644 --- a/modules-available/locations/pages/details.inc.php +++ b/modules-available/locations/pages/details.inc.php @@ -424,12 +424,12 @@ class SubPage $rebootcontrol = Module::isAvailable('rebootcontrol'); $data['rebootcontrol'] = $rebootcontrol; if ($rebootcontrol) { - $wol = Database::queryFirst("SELECT options FROM `scheduler` WHERE locationid = :id AND action = 'wol'", array('id' => $id)); + $wol = Database::queryFirst("SELECT options FROM `reboot_scheduler` WHERE locationid = :id AND action = 'wol'", array('id' => $id)); if ($wol !== false) { $data['wol'] = true; $data['wol-options'] = json_decode($wol['options']); } - $sd = Database::queryFirst("SELECT options FROM `scheduler` WHERE locationid = :id AND action = 'sd'", array('id' => $id)); + $sd = Database::queryFirst("SELECT options FROM `reboot_scheduler` WHERE locationid = :id AND action = 'sd'", array('id' => $id)); if ($sd !== false) { $data['sd'] = true; $data['sd-options'] = json_decode($sd['options']); |