diff options
author | Simon Rettberg | 2018-03-22 17:23:56 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-03-22 17:23:56 +0100 |
commit | 7e4f8d32e81d3c0260600ea00bfc3f9d9a794103 (patch) | |
tree | a78878f6b1b205b083c7bf08ba2f4bc636cec1dd /modules-available/statistics/pages | |
parent | [dozmod] Fix visibility of doAjax (diff) | |
download | slx-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.php | 2 |
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', |