]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_points.php
Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / admin / what-config_points.php
index c43f40a6e613bbbcc70495de1430d0485986893b..6da283298145378a4ef3978089819e20b09b11c0 100644 (file)
@@ -120,11 +120,11 @@ if (isFormSent()) {
                                array('allow_direct_pay', 'reg_points_mode', 'ref_payout'),
                                array(postRequestElement('allow_direct_pay'), postRequestElement('reg_points_mode'), $REF)
                        );
-                       if ((getConfig('ref_payout') == 0) && (postRequestElement('ref_payout') > 0)) {
+                       if ((getConfig('ref_payout') == '0') && (postRequestElement('ref_payout') > 0)) {
                                // Update account's ref_payout for "must-confirm"
                                addSql(sprintf("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_payout`=(%s - `mails_confirmed`)
 WHERE `mails_confirmed` < %s", $REF, $REF));
-                       } elseif ((getConfig('ref_payout') > 0) && (postRequestElement('ref_payout') == 0)) {
+                       } elseif ((getConfig('ref_payout') > 0) && (postRequestElement('ref_payout') == '0')) {
                                // Update account's ref_payout for "not-must-confirm"
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_payout`=0 WHERE `ref_payout` > 0");
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_user_points` SET `points`=`points`+`locked_points` WHERE `locked_points` > 0");