[Rspamd] Set new last modified when changing Rspamd settings

This commit is contained in:
andryyy 2019-11-18 16:42:56 +01:00
parent 7a87c492ed
commit e0535bedbb
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -26,8 +26,8 @@ catch (PDOException $e) {
} }
// Check if db changed and return header // Check if db changed and return header
$stmt = $pdo->prepare("SELECT UNIX_TIMESTAMP(UPDATE_TIME) AS `db_update_time` FROM information_schema.tables $stmt = $pdo->prepare("SELECT MAX(UNIX_TIMESTAMP(UPDATE_TIME)) AS `db_update_time` FROM information_schema.tables
WHERE `TABLE_NAME` = 'filterconf' WHERE (`TABLE_NAME` = 'filterconf' OR `TABLE_NAME` = 'settingsmap')
AND TABLE_SCHEMA = :dbname;"); AND TABLE_SCHEMA = :dbname;");
$stmt->execute(array( $stmt->execute(array(
':dbname' => $database_name ':dbname' => $database_name