notice fixes
authorKurund Jalmi <kurund@civicrm.org>
Tue, 7 May 2013 05:55:07 +0000 (22:55 -0700)
committerKurund Jalmi <kurund@civicrm.org>
Tue, 7 May 2013 05:55:07 +0000 (22:55 -0700)
CRM/Contribute/BAO/Query.php

index 2bcda8181cac0cf5a3daecf0b38c9c724fbfa6ee..e965c59b2fb7e5cf22648f90eca4eec92f99ddec 100644 (file)
@@ -244,9 +244,9 @@ class CRM_Contribute_BAO_Query {
   static function whereClauseSingle(&$values, &$query) {
     list($name, $op, $value, $grouping, $wildcard) = $values;
 
-    $fields = array();
     $fields = self::getFields();
-    if (!empty($value)) {
+
+    if (!empty($value) && !is_array($value)) {
       $quoteValue = "\"$value\"";
     }