an other stall of PostgreSQL update caused by string literals with double quotes

This commit is contained in:
Ralf Becker 2014-06-25 15:51:15 +00:00
parent 9f450a8132
commit 936b6d90cc

View File

@ -118,10 +118,10 @@ function phpgwapi_upgrade1_9_004()
{ {
// Get all installed translations for names // Get all installed translations for names
$country = new country(); $country = new country();
$country_query = 'SELECT DISTINCT message_id, content $country_query = 'SELECT DISTINCT message_id, content'.
FROM ' . translation::LANG_TABLE . ' ' FROM ' . translation::LANG_TABLE .
WHERE message_id IN ("' . implode('","', array_values($country->countries())) . '") " WHERE message_id IN ('" . implode("','", array_values($country->countries())) . "')".
ORDER BY message_id'; ' ORDER BY message_id';
$result = $GLOBALS['egw_setup']->oProc->query($country_query, __LINE__, __FILE__); $result = $GLOBALS['egw_setup']->oProc->query($country_query, __LINE__, __FILE__);
$country_list = array(); $country_list = array();