mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
so_sql::search() was loosing filters, sql-strings (int keys) where writen with that key, instead with []
This commit is contained in:
parent
5dc4617462
commit
07df005b44
@ -515,11 +515,15 @@ class so_sql
|
||||
if ($val !== '')
|
||||
{
|
||||
// check if a db-internal name conversation necessary
|
||||
if (!is_numeric($col) && ($c = array_search($col,$this->db_cols)))
|
||||
if (!is_int($col) && ($c = array_search($col,$this->db_cols)))
|
||||
{
|
||||
$col = $c;
|
||||
}
|
||||
if ($val === "!''")
|
||||
if(is_int($col))
|
||||
{
|
||||
$db_filter[] = $val;
|
||||
}
|
||||
elseif ($val === "!''")
|
||||
{
|
||||
$db_filter[] = $col." != ''";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user