forked from extern/egroupware
* eSyncPro: fix SQL error in device list
This commit is contained in:
parent
25fa730790
commit
56165ff02c
@ -949,6 +949,11 @@ class Base
|
||||
{
|
||||
if (!in_array($col, $colums) && !in_array($col, $as_columns))
|
||||
{
|
||||
// make sure column-name is not ambigous
|
||||
if ($join && strpos($join, $this->table_name.'.'.$col))
|
||||
{
|
||||
$col = $this->table_name.'.'.$col.' AS '.$col;
|
||||
}
|
||||
$colums[] = $col;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user