X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmails%2Fdoubler_mails.php;h=f2fc13ccebd338f1d2e73e625de0b30ff14b2af6;hb=e5527fd38a6585c8466dc28d013f12d21eb7c07a;hp=1783c69cb15b16403a9927277d8094ac8bc5c098;hpb=e5dffd4249c97200cbad02f3f4eaf5c373fdb89a;p=mailer.git diff --git a/inc/mails/doubler_mails.php b/inc/mails/doubler_mails.php index 1783c69cb1..f2fc13cceb 100644 --- a/inc/mails/doubler_mails.php +++ b/inc/mails/doubler_mails.php @@ -68,16 +68,6 @@ unsetPostRequestElement('DOUBLER_USERID'); setSession('DOUBLER_USERID', ''); if (empty($GLOBALS['local_doubler_userid'])) $GLOBALS['local_doubler_userid'] = '0'; -// Init additional WHERE statement -$whereStatement = ' '; - -// Is ext-holiday installed? -// @TODO Rewrite these if() blocks to a filter -if (isExtensionActive('holiday')) { - // Exclude those as well - $whereStatement .= " AND `d`.`holiday_active`='N'"; -} // END - if - // Check for doubles which we can pay out $result_total = sqlQueryEscaped("SELECT COUNT(`do`.`id`) AS `cnt`, @@ -89,7 +79,7 @@ ON `do`.`userid`=`d`.`userid` WHERE `d`.`status`='CONFIRMED' - " . runFilterChain('user_exclusion_sql', $whereStatement) . " AND + " . runFilterChain('user_exclusion_sql', ' ' . $whereStatement) . " AND `do`.`points` <= %s AND `do`.`points` >= ({?doubler_min?} * 2) AND `do`.`completed`='N' AND @@ -121,7 +111,7 @@ ON `do`.`userid`=`d`.`userid` WHERE `d`.`status`='CONFIRMED' - " . runFilterChain('user_exclusion_sql', $whereStatement) . " AND + " . runFilterChain('user_exclusion_sql', ' ' . $whereStatement) . " AND `do`.`points` <= %s AND `do`.`points` >= ({?doubler_min?} * 2) AND `do`.`completed`='N' AND