X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-del_email.php;h=635b6443e9a8399d987dfd9579420f75d676ad7f;hp=d573eb6b2c9dfbdfc6932965be8cd19e5b208696;hb=e79e1454e88271e35086963a0422a51cc243e67a;hpb=e87430f959a8b240d516ef830e6494165bc933b2
diff --git a/inc/modules/admin/what-del_email.php b/inc/modules/admin/what-del_email.php
index d573eb6b2c..635b6443e9 100644
--- a/inc/modules/admin/what-del_email.php
+++ b/inc/modules/admin/what-del_email.php
@@ -92,7 +92,7 @@ WHERE s.pool_id=%d LIMIT 1",
SQL_FREERESULT($result);
// Shall we pay the points back to the user?
- if ($_CONFIG['repay_deleted_mails'] == "Y") {
+ if ($_CONFIG['repay_deleted_mails'] != "NEVER") {
// Get all user links
$result = SQL_QUERY_ESC("SELECT COUNT(id) AS 'cnt' FROM "._MYSQL_PREFIX."_user_links WHERE stats_id=%d",
array(bigintval($stats_id)), __FILE__, __LINE__);
@@ -107,6 +107,12 @@ WHERE s.pool_id=%d LIMIT 1",
$totalPoints = $links * $price;
//* DEBUG: */ echo $stats_id.":".$totalPoints."/".$links."/".$price."
\n";
if ($totalPoints > 0) {
+ // Shall we payback to user or jackpot?
+ if ($_CONFIG['repay_deleted_mails'] == "JACKPOT") {
+ // Set jackpot
+ $sender = 0;
+ }
+
// Pay back points
//* DEBUG: */ echo "PAYBACK:".$sender."
\n";
ADD_POINTS_REFSYSTEM($sender, $totalPoints, true, "0", false,"direct");