CRM_Contact_BAO_Query - Fix batch of regressions in api_v3_ContactTest
authorTim Otten <totten@civicrm.org>
Mon, 3 Jun 2013 02:20:29 +0000 (22:20 -0400)
committerTim Otten <totten@civicrm.org>
Mon, 3 Jun 2013 02:20:46 +0000 (22:20 -0400)
CRM/Contact/BAO/Query.php

index 16f392f481108c2d59b31a81f80b3cfda41a618b..bd6da793e74c7e3e82563982d7ef84a07fcb8e60 100644 (file)
@@ -1723,7 +1723,7 @@ class CRM_Contact_BAO_Query {
         $this->_qill[$grouping][] = ts('State') . " ($lType) $op '$value'";
       }
     }
-    elseif ($field['pseudoconstant']) {
+    elseif (!empty($field['pseudoconstant'])) {
       $this->optionValueQuery(
         $name, $op, $value, $grouping,
         CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', $field['name']),