diff --git a/phpgwapi/inc/adodb/drivers/adodb-mysqli.inc.php b/phpgwapi/inc/adodb/drivers/adodb-mysqli.inc.php index 945695163a..f25bee8645 100644 --- a/phpgwapi/inc/adodb/drivers/adodb-mysqli.inc.php +++ b/phpgwapi/inc/adodb/drivers/adodb-mysqli.inc.php @@ -320,7 +320,8 @@ class ADODB_mysqli extends ADOConnection { ); } - $indexes[$row[2]]['columns'][$row[3] - 1] = $row[4]; + $indexes[$row[2]]['columns'][$row[3] - 1] = $row[4]. + (is_numeric($row[7]) ? '('.(int)$row[7].')' : ''); } // sort columns by order in the index