projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ea9063
)
dev/core#118 Fix issue using count on non array in Group query builder
author
Seamus Lee
<seamuslee001@gmail.com>
Sat, 19 May 2018 03:30:09 +0000
(13:30 +1000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Sat, 19 May 2018 03:30:09 +0000
(13:30 +1000)
CRM/Contact/BAO/Query.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contact/BAO/Query.php
b/CRM/Contact/BAO/Query.php
index 81a191cfa362a059a6bc0b5b8879a8f43cb2a5f7..d35da6a22e7ca590573b0665b254c225cf13debf 100644
(file)
--- a/
CRM/Contact/BAO/Query.php
+++ b/
CRM/Contact/BAO/Query.php
@@
-2965,7
+2965,7
@@
class CRM_Contact_BAO_Query {
$value = NULL;
}
- if (count($value) > 1) {
+ if (
is_array($value) &&
count($value) > 1) {
if (strpos($op, 'IN') === FALSE && strpos($op, 'NULL') === FALSE) {
CRM_Core_Error::fatal(ts("%1 is not a valid operator", array(1 => $op)));
}