]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_points.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-config_points.php
index 48e98ec1453b79e48ed34784a0d783815bec3c3f..0cc3fb2f7e34d5f95ea1928637749ed6998daf23 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -78,12 +78,12 @@ if ((isFormSent('do_delete')) || (isFormSent('do_edit')) || (isFormSent('do_add'
                        );
                        if ((getRefPayout() == '0') && (postRequestElement('ref_payout') > 0)) {
                                // Update account's ref_payout for "must-confirm"
-                               addSql(sprintf("UPDATE
+                               addSql(sprintf('UPDATE
        `{?_MYSQL_PREFIX?}_user_data`
 SET
        `ref_payout`=(%s - `mails_confirmed`)
 WHERE
-       `mails_confirmed` < %s", $REF, $REF));
+       `mails_confirmed` < %s', $REF, $REF));
                        } elseif ((getRefPayout() > 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");
@@ -95,7 +95,7 @@ WHERE
        } // END - switch
 
        // Is there an array?
-       if ((getRequestElement('sub') != 'points') && (isSqlsValid())) {
+       if ((getRequestElement('sub') != 'points') && (ifSqlsRegistered())) {
                // Default is failed-message
                $message = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';