]> git.mxchange.org Git - mailer.git/blobdiff - inc/purge/purge-general.php
Hotfix
[mailer.git] / inc / purge / purge-general.php
index b37bce06136f0ab45657f527be6ffe0e266467ec..ad9ad46475973104e0d7a3e4e34a6d9010dd978d 100644 (file)
@@ -18,7 +18,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -106,7 +106,7 @@ ORDER BY
        // Is the 'bonus' extension installed and activated?
        if (isExtensionActive('bonus', true)) {
                // Check for bonus campaigns
-               $result = SQL_QUERY("SELECT `id`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT `id`,`points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__);
                if (!SQL_HASZERONUMS($result)) {
                        // Start deleting procedure
                        $points = '0';
@@ -132,7 +132,9 @@ ORDER BY
                        } // END - while
 
                        // Add points to jackpot
-                       if (isExtensionActive('jackpot')) addPointsToJackpot($points);
+                       if (isExtensionActive('jackpot')) {
+                               addPointsToJackpot($points);
+                       } // END - if
 
                        // Add points for the admin
                        $admin_points += $points;