diff --git a/data/conf/rspamd/dynmaps/settings.php b/data/conf/rspamd/dynmaps/settings.php index acac7221..271c1b83 100644 --- a/data/conf/rspamd/dynmaps/settings.php +++ b/data/conf/rspamd/dynmaps/settings.php @@ -26,8 +26,8 @@ catch (PDOException $e) { } // Check if db changed and return header -$stmt = $pdo->prepare("SELECT UNIX_TIMESTAMP(UPDATE_TIME) AS `db_update_time` FROM information_schema.tables - WHERE `TABLE_NAME` = 'filterconf' +$stmt = $pdo->prepare("SELECT MAX(UNIX_TIMESTAMP(UPDATE_TIME)) AS `db_update_time` FROM information_schema.tables + WHERE (`TABLE_NAME` = 'filterconf' OR `TABLE_NAME` = 'settingsmap') AND TABLE_SCHEMA = :dbname;"); $stmt->execute(array( ':dbname' => $database_name