]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-unlock_emails.php
Simplified some more code:
[mailer.git] / inc / modules / admin / what-unlock_emails.php
index 1ce67bbb3ab4b97681719ff08fe9104f375303ab..75bddbb45330114c6f3c68e5da57c539c4eb30ff 100644 (file)
@@ -95,7 +95,7 @@ LIMIT 1",
                                        // Check for bonus extension version >= 0.4.4 for the order bonus
                                        if ((isExtensionInstalledAndNewer('bonus', '0.4.4')) && (getConfig('bonus_active') == 'Y')) {
                                                // Add points directly
-                                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `bonus_order`=`bonus_order`+".getConfig('bonus_order')." WHERE `userid`=%s LIMIT 1",
+                                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `bonus_order`=`bonus_order`+{?bonus_order?} WHERE `userid`=%s LIMIT 1",
                                                        array(bigintval($content['sender'])), __FILE__, __LINE__);
 
                                                // Subtract bonus points from system
@@ -204,9 +204,9 @@ LIMIT 1",
                                'subject'     => $content['subject'],
                                'tester'      => generateFrametesterUrl($content['url']),
                                'url'         => $content['url'],
-                               'cat_title'   => str_replace("\"", '"', getCategory($content['category'])),
+                               'cat_title'   => str_replace('"', '"', getCategory($content['category'])),
                                'cat_link'    => $content['category'],
-                               'pay_title'   => str_replace("\"", '"', getPaymentTitlePrice($content['payment'], true)),
+                               'pay_title'   => str_replace('"', '"', getPaymentTitlePrice($content['payment'], true)),
                                'pay_link'    => $content['payment'],
                                'timestamp'   => generateDateTime($content['timestamp'], 2),
                                'target_send' => $content['target_send'],