From 0480d8aff79fb45034a32d594501cd3d325cb1e2 Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Tue, 8 Dec 2020 14:16:37 +0100 Subject: [rebootcontrol] rename scheduler table and associated queries --- modules-available/locations/pages/details.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules-available/locations') 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']); -- cgit v1.2.3-55-g7522