dev/core#538 fix advanced search on activity subject, detail to use wildcards like...
[civicrm-core.git] / CRM / Contact / BAO / Query.php
index ab5e7f69d06f46bc270cd6638e7be3033216fabf..970922ec82d49ae4c2134dba34e79fb95b1f1447 100644 (file)
@@ -3452,7 +3452,7 @@ WHERE  $smartGroupClause
       return;
     }
 
-    $input = $value = trim($value);
+    $input = $value = is_array($value) ? trim($value['LIKE']) : trim($value);
 
     if (!strlen($value)) {
       return;