mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +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
8a7840660b
commit
50f4f5f757
@ -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