From 33194c44d4a213cd008b039310913bbae369b03a Mon Sep 17 00:00:00 2001 From: beu Date: Wed, 27 Apr 2022 09:26:43 +0200 Subject: [PATCH] fix wrong query --- core/Settings/SettingManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Settings/SettingManager.php b/core/Settings/SettingManager.php index 8e93f2a0..c60d0e08 100644 --- a/core/Settings/SettingManager.php +++ b/core/Settings/SettingManager.php @@ -130,7 +130,7 @@ class SettingManager implements CallbackListener, UsageInformationAble { private function deleteUnusedSettings() { $mysqli = $this->maniaControl->getDatabase()->getMysqli(); $settingStatement = $mysqli->prepare("DELETE FROM `" . self::TABLE_SETTINGS . "` - WHERE ((`linked` = 1 AND `serverIndex` = ?) OR `linked` = 0) AND `changed` < NOW() - INTERVAL 1 HOUR;"); + WHERE ((`linked` = 0 AND `serverIndex` = ?) OR `linked` = 1) AND `changed` < NOW() - INTERVAL 1 HOUR;"); if ($mysqli->error) { trigger_error($mysqli->error); return null;