]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-payments.php
Large code cleanups:
[mailer.git] / inc / modules / admin / what-payments.php
index 0033e186b31090b0820d5982f27461903d38f9d2..19e0990d94e6e07627cb47c3ba00966200ca7103 100644 (file)
@@ -59,7 +59,7 @@ if (isFormSent()) {
 
                case 'edit':
                        foreach (postRequestElement('time') as $id => $value) {
-                               addSql("UPDATE `{?_MYSQL_PREFIX?}_payments` SET `time`='" . $value . "', `payment`='".postRequestElement('payment', $id)."', price='".postRequestElement('price', $id)."', mail_title='".postRequestElement('mail_title', $id)."' WHERE `id`='".$id."' LIMIT 1");
+                               addSql("UPDATE `{?_MYSQL_PREFIX?}_payments` SET `time`='" . $value . "',`payment`='".postRequestElement('payment', $id)."', price='".postRequestElement('price', $id)."', mail_title='".postRequestElement('mail_title', $id)."' WHERE `id`='".$id."' LIMIT 1");
                        } // END - foreach
                        break;
 
@@ -117,10 +117,10 @@ if (isFormSent()) {
        // Load main template
        loadTemplate('admin_edit_payments', false, $OUT);
 } else {
-       // Referal levels
+       // Referral levels
        $result = SQL_QUERY("SELECT `id`,`time`,`payment`,`mail_title`,`price` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `time` ASC", __FILE__, __LINE__);
        if (!SQL_HASZERONUMS($result)) {
-               // Make referal levels editable and deletable
+               // Make referral levels editable and deletable
                $OUT = '';
 
                // List already existing categories for editing
@@ -136,7 +136,7 @@ if (isFormSent()) {
                loadTemplate('admin_list_payments', false, $OUT);
        } // END - if
 
-       // Form for adding new referal levels
+       // Form for adding new referral levels
        loadTemplate('admin_add_payment');
 }