forked from extern/egroupware
fixing a bug, when trying to sanitize possible ambiguous columns
This commit is contained in:
parent
9ea63f1cbb
commit
a9fd21325d
@ -449,7 +449,7 @@ class so_sql_cf extends so_sql
|
||||
foreach($criteria as $name => $val)
|
||||
{
|
||||
$extra_columns = $this->db->get_table_definitions($app, $this->extra_table);
|
||||
if($extra_columns['fd'][array_search($name, $this->db_cols)]) {
|
||||
if(is_string($name) && $extra_columns['fd'][array_search($name, $this->db_cols)]) {
|
||||
$criteria[] = $this->db->expression($this->table_name,$this->table_name.'.',array(
|
||||
array_search($name, $this->db_cols) => $val,
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user