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:
c4a7c96
)
Fix civilint formatting issues
author
aydun
<aidan.saunders@gmail.com>
Tue, 24 Mar 2015 15:13:40 +0000
(15:13 +0000)
committer
aydun
<aidan.saunders@gmail.com>
Tue, 24 Mar 2015 15:13:40 +0000
(15:13 +0000)
CRM/Contact/BAO/Query.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contact/BAO/Query.php
b/CRM/Contact/BAO/Query.php
index ff7f82ddddc3e91dfc0289e76f189faac245cbef..2b71a0bb431336e2a9392dc84a8eafb64d278e22 100644
(file)
--- a/
CRM/Contact/BAO/Query.php
+++ b/
CRM/Contact/BAO/Query.php
@@
-5211,7
+5211,6
@@
SELECT COUNT( conts.total_amount ) as cancel_count,
}
}
-
if ($secondOP) {
$this->_where[$grouping][] = "
( {$tableName}.{$dbFieldName} $firstOP '$firstDate' ) AND
@@
-5239,7
+5238,8
@@
SELECT COUNT( conts.total_amount ) as cancel_count,
// minimum age is $age: dob <= date - age "235959"
$date->sub(new DateInterval("P" . $age . "Y"));
return $date->format('Ymd') . "235959";
- } else {
+ }
+ else {
// max age is $age: dob >= date - (age + 1y) + 1d "000000"
$date->sub(new DateInterval("P" . ($age + 1) . "Y"))->add(new DateInterval("P1D"));
return $date->format('Ymd') . "000000";