]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-lock_sponsor.php
Fix for missing array element 'mails_sent'
[mailer.git] / inc / modules / admin / what-lock_sponsor.php
index ed5d9ea4b51cb8c2272d8e1a111b86fed40e5fd8..dff0cb7793e00706148f1393a3e841a49422fda8 100644 (file)
@@ -46,7 +46,7 @@ $message = '';
 
 if (isGetRequestParameterSet('id')) {
        // Check for selected sponsor
-       $result_sponsor = SQL_QUERY_ESC("SELECT `gender`, `surname`, `family`, `email`, `status` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
+       $result_sponsor = SQL_QUERY_ESC("SELECT `gender`,`surname`,`family`,`email`,`status` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestParameter('id'))), __FILE__, __LINE__);
        if (SQL_NUMROWS($result_sponsor) == 1) {
                // Get sponsor's current status and let only confirmed and locked status pass
@@ -107,7 +107,7 @@ if (isGetRequestParameterSet('id')) {
                }
        } else {
                // Sponsor not found
-               $message = getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id')));
+               $message = '{%message,ADMIN_SPONSOR_404=' . bigintval(getRequestParameter('id')) . '%}';
        }
 
        // Free result