From: Roland Häder <roland@mxchange.org>
Date: Mon, 28 Jun 2010 19:53:22 +0000 (+0000)
Subject: Fix for the fix ... :-(
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=66cd6ddfae3a06371b60267945c8903e2b2746cc;p=mailer.git

Fix for the fix ... :-(
---

diff --git a/inc/modules/admin/what-email_archiv.php b/inc/modules/admin/what-email_archiv.php
index 978a0a71f6..eba3a148f0 100644
--- a/inc/modules/admin/what-email_archiv.php
+++ b/inc/modules/admin/what-email_archiv.php
@@ -48,15 +48,18 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
-// Check for maximum pages
-$result_maximum = SQL_QUERY("SELECT
+// Init SQL
+$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'
 ORDER BY
-	`timestamp` DESC", __FILE__, __LINE__);
+	`timestamp` DESC";
+
+// Check for maximum pages
+$result_maximum = SQL_QUERY(, __FILE__, __LINE__);
 
 // Set offset an current page to default values
 if (!isGetRequestParameterSet('page'))   setGetRequestParameter('page'  , 1);