summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol
diff options
context:
space:
mode:
authorSimon Rettberg2017-04-20 11:51:47 +0200
committerSimon Rettberg2017-04-20 11:51:47 +0200
commit391d831ec434d12e6ec825fe75f7950bd0da1004 (patch)
treef77aa23a892547feedac08d3c6a54ee0cd24e768 /modules-available/rebootcontrol
parent[locationinfo] CourseBackend: Rename some methods to be more descriptive (diff)
downloadslx-admin-391d831ec434d12e6ec825fe75f7950bd0da1004.tar.gz
slx-admin-391d831ec434d12e6ec825fe75f7950bd0da1004.tar.xz
slx-admin-391d831ec434d12e6ec825fe75f7950bd0da1004.zip
[locationinfo] Rename tables to use module name as prefix; room -> location
Diffstat (limited to 'modules-available/rebootcontrol')
-rw-r--r--modules-available/rebootcontrol/inc/rebootqueries.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/rebootcontrol/inc/rebootqueries.inc.php b/modules-available/rebootcontrol/inc/rebootqueries.inc.php
index df3c13d8..62092748 100644
--- a/modules-available/rebootcontrol/inc/rebootqueries.inc.php
+++ b/modules-available/rebootcontrol/inc/rebootqueries.inc.php
@@ -36,8 +36,8 @@ class RebootQueries
{
if (empty($list))
return array();
- $qs = '?' . str_repeat(',?', count($list) - 1);
- $res = Database::simpleQuery("SELECT machineuuid, clientip, locationid FROM machine WHERE machineuuid IN ($qs)", $list);
+ $res = Database::simpleQuery("SELECT machineuuid, clientip, locationid FROM machine
+ WHERE machineuuid IN (:list)", compact('list'));
return $res->fetchAll(PDO::FETCH_ASSOC);
}