From 2233cded7f8c8b92a576a8a666d02417264b3439 Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Wed, 6 Jun 2018 23:55:23 +0800 Subject: [PATCH] Add type coercion to fix #2054 --- config/initializers/db_preferences_mysql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/db_preferences_mysql.rb b/config/initializers/db_preferences_mysql.rb index 31bb30117..2958bb6a4 100644 --- a/config/initializers/db_preferences_mysql.rb +++ b/config/initializers/db_preferences_mysql.rb @@ -61,7 +61,7 @@ end if connection.execute("SHOW tables LIKE 'settings';").any? && Setting.get('postmaster_max_size').present? && - Setting.get('postmaster_max_size') > max_allowed_packet_mb + Setting.get('postmaster_max_size').to_i > max_allowed_packet_mb printf "\e[33m" # ANSI yellow puts <<~MSG Warning: Database config value 'max_allowed_packet' less than Zammad setting 'Maximum Email Size'