* eSyncPro: fix SQL error in device list

This commit is contained in:
Ralf Becker 2020-09-16 16:44:46 +02:00
parent c05047728c
commit da27403b1b

View File

@ -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;
}
}