Cleanup
authorColeman Watts <coleman@civicrm.org>
Thu, 27 Jun 2013 17:40:36 +0000 (10:40 -0700)
committerColeman Watts <coleman@civicrm.org>
Tue, 23 Jul 2013 19:59:23 +0000 (12:59 -0700)
CRM/Contact/BAO/Query.php

index c7401cab2aad72ba80b5f8dfb8654b6d2bfe2a88..756e672c263639ab42b7ea76a999f58cf5147cdf 100644 (file)
@@ -3526,7 +3526,7 @@ WHERE  id IN ( $groupIDs )
       $this->_qill[$grouping][] = ts('State/Province') . " $op " . implode(' ' . ts('or') . ' ', $names) . $countryQill;
     }
     else {
-      return implode(' ' . ts('or') . ' ', $names) . $countryQill;;
+      return implode(' ' . ts('or') . ' ', $names) . $countryQill;
     }
   }
 
@@ -3609,10 +3609,8 @@ WHERE  id IN ( $groupIDs )
   function privacyOptions($values) {
     list($name, $op, $value, $grouping, $wildcard) = $values;
 
-    if (empty($value) ||
-      !is_array($value)
-    ) {
-      continue;
+    if (empty($value) || !is_array($value)) {
+      return;
     }
 
     // get the operator and toggle values