]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-del_email.php
Fixes for switch task->sel
[mailer.git] / inc / modules / admin / what-del_email.php
index b09c9bbcfee3fdb57dc82191b7a035d097fd6477..3ce87e6a67716f1b235bd71c243f04f8704cc11f 100644 (file)
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addMenuDescription('admin', __FILE__);
 
 // Init counter for deleted mails
-$cnt = 0;
+$cnt = '0';
 
 if (isGetRequestElementSet('mid')) {
        // Load email data
@@ -107,7 +107,7 @@ LIMIT 1",
                                        // Shall we payback to user or jackpot?
                                        if (getConfig('repay_deleted_mails') == 'JACKPOT') {
                                                // Set jackpot
-                                               $sender = 0;
+                                               $sender = '0';
                                        } // END - if
 
                                        // Pay back points
@@ -179,7 +179,7 @@ LIMIT 1",
                reduceRecipientReceivedMails('bonus_id', getRequestElement('bid'), $sent);
 
                // Init counter for deleted mails
-               $cnt = 0;
+               $cnt = '0';
 
                // Delete bonus mail entirely from database
                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
@@ -216,7 +216,7 @@ LIMIT 1",
                list ($id, $subject, $url, $timestamp) = SQL_FETCHROW($result);
 
                // Init counter for deleted mails
-               $cnt = 0;
+               $cnt = '0';
 
                // Delete bonus mail entirely from database
                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",