]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-edit_emails.php
New wrapper functions introduced
[mailer.git] / inc / modules / admin / what-edit_emails.php
index 6cc821b374689f48dab4cbb83fa58c4e984b5ea3..794fd2de8f0c67fa19d1e8dec61a59a4a2e1214a 100644 (file)
@@ -50,15 +50,15 @@ if ((isFormSent()) && (!isPostRequestParameterSet('id'))) {
 } // END - if
 
 // Query the pool
-$result = SQL_QUERY("SELECT
+$result = SQL_QUERY('SELECT
        `id`, `sender`, `subject`, `payment_id`, `cat_id`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 ORDER BY
-       `timestamp` ASC", __FILE__, __LINE__);
+       `timestamp` ASC', __FILE__, __LINE__);
 
 // Entries found?
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
        if (isFormSent()) {
                // Make mail editable...
                $result = SQL_QUERY_ESC("SELECT `id`, `subject`, `text`, `url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1",