Fix missed case of 'really need it'. See SVN r47435.

This commit is contained in:
Nathan Gray 2014-09-08 18:23:34 +00:00
parent 4d7f00d0fd
commit 7f291a17a6

View File

@ -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;