diff --git a/phpgwapi/inc/class.schema_proc_pgsql.inc.php b/phpgwapi/inc/class.schema_proc_pgsql.inc.php index 80234466e8..259bd6f495 100644 --- a/phpgwapi/inc/class.schema_proc_pgsql.inc.php +++ b/phpgwapi/inc/class.schema_proc_pgsql.inc.php @@ -184,7 +184,8 @@ { $append = True; $ixsql = ''; - $index = $sTableName . '_' . $sFields . '_idx'; + $ixFields = str_replace(',','_',$sFields); + $index = $sTableName . '_' . $ixFields . '_idx'; return "CREATE INDEX $index ON $sTableName ($sFields);\n"; }