]> git.mxchange.org Git - mailer.git/commitdiff
Some code cleanups
authorRoland Häder <roland@mxchange.org>
Sun, 30 Jan 2011 00:08:47 +0000 (00:08 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 30 Jan 2011 00:08:47 +0000 (00:08 +0000)
inc/modules/admin/what-edit_emails.php
inc/modules/admin/what-unlock_emails.php

index cb75867f7bf8ba0cc28ed1848401d607f8e579f3..383782306f4388b65ca39e4cb0198a1babdf2f7a 100644 (file)
@@ -120,7 +120,7 @@ LIMIT 1",
        }
 } else {
        // No mail orders left in pool
-       loadTemplate('admin_settings_saved', false, '<span class="notice">{--ADMIN_NO_MAILS_IN_POOL--}</span>');
+       loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
 }
 
 // [EOF]
index e59a2d251ec83af477c5a1d4bd42416a1e3bbddb..201cd9fe39edd4b8e2585bfc8602ac3862798b0f 100644 (file)
@@ -63,15 +63,15 @@ if ((!SQL_HASZERONUMS($result_main)) || (isFormSent('lock'))) {
 
                                // Order placed in queue...
                                $result = SQL_QUERY_ESC("SELECT
-       po.url, po.subject, po.sender, pay.payment, po.payment_id
+       po.`url`, po.`subject`, po.`sender`, pay.`payment`, po.`payment_id`
 FROM
-       `{?_MYSQL_PREFIX?}_pool` AS po
+       `{?_MYSQL_PREFIX?}_pool` AS `po`
 INNER JOIN
-       `{?_MYSQL_PREFIX?}_payments` AS pay
+       `{?_MYSQL_PREFIX?}_payments` AS `pay`
 ON
-       po.payment_id=pay.id
+       po.`payment_id`=pay.`id`
 WHERE
-       po.id=%s
+       po.`id`=%s
 LIMIT 1",
                                        array($id), __FILE__, __LINE__);
 
@@ -144,10 +144,12 @@ LIMIT 1",
                                sendEmail($content['sender'], '{--MEMBER_ORDER_REJECTED--}', $message_user);
 
                                // If you do not enter an URL to redirect to, your URL will be set!
-                               if ((!isPostRequestParameterSet('redirect')) || (postRequestParameter('redirect') == 'http://')) setPostRequestParameter('redirect', getUrl());
+                               if ((!isPostRequestParameterSet('redirect')) || (postRequestParameter('redirect') == 'http://')) {
+                                       setPostRequestParameter('redirect', getUrl());
+                               } // END - if
 
                                // Redirect URL
-                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET url='%s', `data_type`='NEW' WHERE `id`=%s LIMIT 1",
+                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `url`='%s', `data_type`='NEW' WHERE `id`=%s LIMIT 1",
                                        array(postRequestParameter('redirect'), $id),__FILE__, __LINE__);
 
                                // Prepare data for the row template