summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2018-03-22 17:23:56 +0100
committerSimon Rettberg2018-03-22 17:23:56 +0100
commit7e4f8d32e81d3c0260600ea00bfc3f9d9a794103 (patch)
treea78878f6b1b205b083c7bf08ba2f4bc636cec1dd /modules-available/statistics/pages
parent[dozmod] Fix visibility of doAjax (diff)
downloadslx-admin-7e4f8d32e81d3c0260600ea00bfc3f9d9a794103.tar.gz
slx-admin-7e4f8d32e81d3c0260600ea00bfc3f9d9a794103.tar.xz
slx-admin-7e4f8d32e81d3c0260600ea00bfc3f9d9a794103.zip
[statistics] Don't error out when adding already existent projector
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/projectors.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/projectors.inc.php b/modules-available/statistics/pages/projectors.inc.php
index cdd0195e..cc808cf0 100644
--- a/modules-available/statistics/pages/projectors.inc.php
+++ b/modules-available/statistics/pages/projectors.inc.php
@@ -19,7 +19,7 @@ class SubPage
Util::traceError('Param hwid missing');
}
if ($action === 'addprojector') {
- Database::exec('INSERT INTO statistic_hw_prop (hwid, prop, value)'
+ Database::exec('INSERT IGNORE INTO statistic_hw_prop (hwid, prop, value)'
. ' VALUES (:hwid, :prop, :value)', array(
'hwid' => $hwid,
'prop' => 'projector',