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

This commit is contained in:
Ralf Becker 2014-06-25 15:55:13 +00:00
parent 134e50c3ca
commit e50c4b4936

View File

@ -158,10 +158,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();