]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
Some SQLs rewritten, unneccessary parameter removed
[mailer.git] / inc / libs / bonus_functions.php
index 72b6b2e24d47c57dcca4ddbd237100a2b3bb4f55..74e1686bcb63408ad3e5cb2c4eeffd582d4d7af3 100644 (file)
@@ -280,7 +280,7 @@ function purgeExpiredTurboBonus() {
 
        if (SQL_AFFECTEDROWS() > 0) {
                // Send out email to admin
-               sendAdminNotification(getMessage('AUTOPURGE_ADMIN_TURBO_SUBJECT'), 'admin_autopurge_turbo', SQL_AFFECTEDROWS(), '');
+               sendAdminNotification(getMessage('AUTOPURGE_ADMIN_TURBO_SUBJECT'), 'admin_autopurge_turbo', SQL_AFFECTEDROWS());
        } // END - if
 }
 
@@ -318,7 +318,7 @@ LIMIT 1",
                $bonus = (SQL_AFFECTEDROWS() == 1);
        } // END - if
 
-       if (($bonus === true) && (getRequestElement('mode') == 'bonus')) {
+       if (($bonus === true) && (getRequestParameter('mode') == 'bonus')) {
                // Output message with added points
                $GLOBALS['message'] .= '<div class="tiny">' . getMessage('BONUS_LOGIN_BONUS_ADDED') . '</div>';
        } elseif (isExtensionActive('bonus')) {