]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-bonus.php
Huge rewrite:
[mailer.git] / inc / extensions / ext-bonus.php
index c8485ca186c7161b307d733f59a4f1d338aa6b36..f33c822a041fa69720c76883501e15406b3b5e28 100644 (file)
@@ -424,7 +424,7 @@ WHERE `last_online` < ".$mark." ORDER BY `userid` ASC");
                                break;
 
                        case '0.6.8': // SQL queries for v0.6.8
-                               ADD_EXT_SQL("UPDATE `{!_MYSQL_PREFIX!}_bonus` SET data_type='SEND' WHERE data_type != 'SEND' AND data_type != 'DELETED' AND receivers='' AND target_send='0'");
+                               ADD_EXT_SQL("UPDATE `{!_MYSQL_PREFIX!}_bonus` SET `data_type`='SEND' WHERE `data_type` != 'SEND' AND `data_type` != 'DELETED' AND `receivers`='' AND `target_send`='0'");
 
                                // Update notes (these will be set as task text!)
                                EXT_SET_UPDATE_NOTES("Eingegebene Anzahl auszusendener Bonus-Mails wurde bei der Empf&auml;nderauswahl nicht ber&uuml;cksichtigt. Zudem wird jetzt das eingestellte Auswahlverfahren mitber&uuml;cksichtigt.");
@@ -550,7 +550,7 @@ WHERE `last_online` < ".$mark." ORDER BY `userid` ASC");
                                break;
 
                        default: // Do stuff when extension is loaded
-                               if (isResetModeEnabled() && (!isDebugModeEnabled()) && ($GLOBALS['output_mode'] != 1)) {
+                               if (isResetModeEnabled() && (!isDebugModeEnabled()) && (getOutputMode() != 1)) {
                                        // Daily reset was run so let's check if active rallye is activated
                                        if (getConfig('bonus_active') == 'Y') {
                                                // Run active rallye