Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configs/
output/
configs/**
output/**
6 changes: 3 additions & 3 deletions weathermap-cacti-plugin-mgmt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2491,17 +2491,17 @@ function weathermap_map_settings_form($mapid = 0, $settingid = 0) {

function weathermap_setting_save($mapid, $name, $value) {
if ($mapid > 0) {
db_execute_prepared('REPLACE INFO weathermap_settings
db_execute_prepared('REPLACE INTO weathermap_settings
(mapid, groupid, optname, optvalue)
VALUES (?, ?, ?, ?)',
[$mapid, 0, $name, $value]);
} elseif ($mapid < 0) {
db_execute_prepared('REPLACE INFO weathermap_settings
db_execute_prepared('REPLACE INTO weathermap_settings
(mapid, groupid, optname, optvalue)
VALUES (?, ?, ?, ?)',
[0, -$mapid, $name, $value]);
} else {
db_execute_prepared('REPLACE INFO weathermap_settings
db_execute_prepared('REPLACE INTO weathermap_settings
(mapid, groupid, optname, optvalue)
VALUES (?, ?, ?, ?)',
[0, 0, $name, $value]);
Expand Down
Loading