diff --git a/.gitignore b/.gitignore index c0d9b26..69f2746 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -configs/ -output/ +configs/** +output/** diff --git a/weathermap-cacti-plugin-mgmt.php b/weathermap-cacti-plugin-mgmt.php index 47a6f43..f751694 100644 --- a/weathermap-cacti-plugin-mgmt.php +++ b/weathermap-cacti-plugin-mgmt.php @@ -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]);