From b40fd0a8eb3f6fddbdb1618524b290c5cf0531be Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 29 Nov 2017 01:15:08 +0100 Subject: [PATCH] fix SQL error caused by missing quotes --- infolog/setup/tables_update.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/setup/tables_update.inc.php b/infolog/setup/tables_update.inc.php index 36f8860e5c..e321f598e2 100644 --- a/infolog/setup/tables_update.inc.php +++ b/infolog/setup/tables_update.inc.php @@ -941,7 +941,7 @@ function infolog_upgrade16_1_003() { // copy full info_addr to info_des, if length(info_from)+length(info_addr)+2 > 255 and then shorten it to fit $GLOBALS['egw_setup']->db->query("UPDATE egw_infolog SET info_des=". - $GLOBALS['egw_setup']->db->concat('info_addr', "\n\n", 'info_des'). + $GLOBALS['egw_setup']->db->concat('info_addr', "'\n\n'", 'info_des'). " WHERE LENGTH(info_from)+LENGTH(info_addr > 253", __LINE__, __FILE__); $GLOBALS['egw_setup']->db->query("UPDATE egw_infolog SET info_from = CASE WHEN info_from != '' THEN SUBSTRING(".