mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix missed case of 'really need it'. See SVN r47435.
This commit is contained in:
parent
4d7f00d0fd
commit
7f291a17a6
@ -464,7 +464,10 @@ class so_sql_cf extends so_sql
|
|||||||
foreach($criteria as $name => $val)
|
foreach($criteria as $name => $val)
|
||||||
{
|
{
|
||||||
// only add extra_join, if we really need it
|
// only add extra_join, if we really need it
|
||||||
if (!$extra_join_added && is_int($name) && strpos($val, $this->extra_value) !== false)
|
if (!$extra_join_added && (
|
||||||
|
is_int($name) && strpos($val, $this->extra_value) !== false ||
|
||||||
|
is_string($name) && $this->is_cf($name)
|
||||||
|
))
|
||||||
{
|
{
|
||||||
$join .= $this->extra_join;
|
$join .= $this->extra_join;
|
||||||
$extra_join_added = true;
|
$extra_join_added = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user