mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
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)
|
foreach($criteria as $name => $val)
|
||||||
{
|
{
|
||||||
$extra_columns = $this->db->get_table_definitions($app, $this->extra_table);
|
$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(
|
$criteria[] = $this->db->expression($this->table_name,$this->table_name.'.',array(
|
||||||
array_search($name, $this->db_cols) => $val,
|
array_search($name, $this->db_cols) => $val,
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user