]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_unconfirmed.php
Performance hacks, encapsulation and more EL code usage:
[mailer.git] / inc / modules / admin / what-list_unconfirmed.php
index a68fe3b08b67fcfb3ca507fef399c7d4b58e2e0d..2d57bc67158630dc855c8bf3388982df3678ca88 100644 (file)
@@ -51,6 +51,9 @@ if (!isExtensionActive('mailid')) {
 // Don't load the admin_list_unconfirmed template by default
 $listed = false;
 
+// Init query
+$sql = '';
+
 // List confirmation links from normal or bonus mails
 if (isGetRequestParameterSet('mid')) {
        // SQL query for mail data
@@ -98,7 +101,7 @@ LIMIT 1",
 }
 
 // Shall I display links or not?
-if ($listed === true) {
+if (($listed === true) && (!empty($sql))) {
        // Load mail data
        $result_master = SQL_QUERY($sql, __FILE__, __LINE__);