mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
allow to add SQL with nummeric keys to Storage\Base::read() argument, like in ::search or Db::select
This commit is contained in:
parent
2ead0ae2fb
commit
b30c712e19
@ -549,6 +549,11 @@ class Base
|
||||
unset($query[$col]);
|
||||
}
|
||||
}
|
||||
// copy direct SQL parts from $keys
|
||||
for($i = 0; is_array($keys) && isset($keys[$i]); ++$i)
|
||||
{
|
||||
$query[] = $keys[$i];
|
||||
}
|
||||
foreach($this->db->select($this->table_name,'*'.($extra_cols?','.(is_array($extra_cols)?implode(',',$extra_cols):$extra_cols):''),
|
||||
$query,__LINE__,__FILE__,False,'',$this->app,0,$join) as $row)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user