mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02:00
Prepend table name to avoid ambiguity
This commit is contained in:
parent
7810068ed0
commit
fe7814b64c
@ -931,7 +931,12 @@ class so_sql
|
|||||||
}
|
}
|
||||||
if ($only_keys === true)
|
if ($only_keys === true)
|
||||||
{
|
{
|
||||||
$colums = implode(',',array_keys($this->db_key_cols));
|
$colums = array_keys($this->db_key_cols);
|
||||||
|
foreach($colums as &$column)
|
||||||
|
{
|
||||||
|
$column = $this->table_name . '.' . $column;
|
||||||
|
}
|
||||||
|
$colums = implode(',',$colums);
|
||||||
if (!empty($colums)) $colums = ' DISTINCT '.$colums;
|
if (!empty($colums)) $colums = ' DISTINCT '.$colums;
|
||||||
}
|
}
|
||||||
elseif (is_array($only_keys))
|
elseif (is_array($only_keys))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user