From 936b6d90cc17c0846480e8ee3e2aba6c2a757208 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 25 Jun 2014 15:51:15 +0000 Subject: [PATCH] an other stall of PostgreSQL update caused by string literals with double quotes --- phpgwapi/setup/tables_update_1_8.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpgwapi/setup/tables_update_1_8.inc.php b/phpgwapi/setup/tables_update_1_8.inc.php index ace42096fa..b61e3fcfdf 100644 --- a/phpgwapi/setup/tables_update_1_8.inc.php +++ b/phpgwapi/setup/tables_update_1_8.inc.php @@ -118,10 +118,10 @@ function phpgwapi_upgrade1_9_004() { // Get all installed translations for names $country = new country(); - $country_query = 'SELECT DISTINCT message_id, content - FROM ' . translation::LANG_TABLE . ' - WHERE message_id IN ("' . implode('","', array_values($country->countries())) . '") - ORDER BY message_id'; + $country_query = 'SELECT DISTINCT message_id, content'. + ' FROM ' . translation::LANG_TABLE . + " WHERE message_id IN ('" . implode("','", array_values($country->countries())) . "')". + ' ORDER BY message_id'; $result = $GLOBALS['egw_setup']->oProc->query($country_query, __LINE__, __FILE__); $country_list = array();