]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-email_archiv.php
Constants rewritten (internal TODO)
[mailer.git] / inc / modules / admin / what-email_archiv.php
index f86d378d2e4a9093dc9f4776eeac596acfc8b157..9adac2ca553a6c7ce63646ce51552a06b209eabc 100644 (file)
@@ -51,7 +51,7 @@ ADD_DESCR('admin', __FILE__);
 //             0     1        2      3        4          5           6          7      8         9        10
 $sql = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id
  FROM `{!_MYSQL_PREFIX!}_pool`
- WHERE data_type='SEND' OR data_type='DELETED'
+ WHERE `data_type`='SEND' OR `data_type`='DELETED'
  ORDER BY timestamp DESC";
 
 // Check for maximum pages
@@ -87,7 +87,7 @@ if (SQL_NUMROWS($result) > 0) {
        while ($pool = SQL_FETCHROW($result)) {
                // Check sent mails and clicks
                $result_mails = SQL_QUERY_ESC("SELECT max_rec, clicks FROM `{!_MYSQL_PREFIX!}_user_stats` WHERE pool_id=%s LIMIT 1",
-                       array(bigintval($pool[0])), __FILE__, __LINE__);
+               array(bigintval($pool[0])), __FILE__, __LINE__);
                list($sent, $clicks) = SQL_FETCHROW($result_mails);
                SQL_FREERESULT($result_mails);
 
@@ -95,7 +95,7 @@ if (SQL_NUMROWS($result) > 0) {
                $unconfirmed = $sent - $clicks;
                if ($unconfirmed > 0) {
                        // Add link to list_unconfirmed what-file
-                       $unconfirmed = "<strong><a href=\"{!URL!}/modules.php?module=admin&amp;what=list_unconfirmed&amp;mid=".$pool[0]."\">".$unconfirmed."</a></strong>";
+                       $unconfirmed = "<strong><a href=\"{?URL?}/modules.php?module=admin&amp;what=list_unconfirmed&amp;mid=".$pool[0]."\">".$unconfirmed."</a></strong>";
                }
 
                // Prepare data for the row template