projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'platal-1.0.0'
[platal.git]
/
modules
/
axletter
/
axletter.inc.php
diff --git
a/modules/axletter/axletter.inc.php
b/modules/axletter/axletter.inc.php
index
f31f979
..
53c7dd3
100644
(file)
--- a/
modules/axletter/axletter.inc.php
+++ b/
modules/axletter/axletter.inc.php
@@
-178,10
+178,10
@@
class AXLetter extends MassMailer
/* TODO: refines this filter on promotions by using userfilter. */
$where = array();
if ($this->_promo_min) {
/* TODO: refines this filter on promotions by using userfilter. */
$where = array();
if ($this->_promo_min) {
- $where[] = "((ni.uid = 0 AND ni.promo >= {$this->_promo_min}) OR (ni.uid != 0 AND
u.promo >= {$this->_promo_min}
))";
+ $where[] = "((ni.uid = 0 AND ni.promo >= {$this->_promo_min}) OR (ni.uid != 0 AND
pd.promo >= 'X{$this->_promo_min}'
))";
}
if ($this->_promo_max) {
}
if ($this->_promo_max) {
- $where[] = "((ni.uid = 0 AND ni.promo <= {$this->_promo_max}) OR (ni.uid != 0 AND
u.promo <= {$this->_promo_max}
))";
+ $where[] = "((ni.uid = 0 AND ni.promo <= {$this->_promo_max}) OR (ni.uid != 0 AND
pd.promo <= 'X{$this->_promo_max}'
))";
}
if ($this->_subset) {
require_once("emails.inc.php");
}
if ($this->_subset) {
require_once("emails.inc.php");