]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-lock_sponsor.php
Continued:
[mailer.git] / inc / modules / admin / what-lock_sponsor.php
index d5aa03d51a46ceb17b690ab388b9f6281ba5d853..d037477d15b760569bbb08b7749ec89205ad9197 100644 (file)
@@ -46,7 +46,7 @@ $message = '';
 
 if (isGetRequestElementSet('id')) {
        // Check for selected sponsor
-       $result_sponsor = sqlQueryEscaped("SELECT `gender`, `surname`, `family`, `email`, `status` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
+       $result_sponsor = sqlQueryEscaped("SELECT `sex`, `surname`, `family`, `email`, `status` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestElement('id'))), __FILE__, __LINE__);
        if (sqlNumRows($result_sponsor) == 1) {
                // Get sponsor's current status and let only confirmed and locked status pass
@@ -96,7 +96,7 @@ if (isGetRequestElementSet('id')) {
                                }
 
                                // Create email link
-                               $content['email_link'] = '<a href="' . generateEmailLink($content['email'], 'sponsor_data') . '">' . $content['gender'] . ' ' . $content['surname'] . ' ' . $content['family'] . '</a>';
+                               $content['email_link'] = '<a href="' . generateEmailLink($content['email'], 'sponsor_data') . '">' . $content['sex'] . ' ' . $content['surname'] . ' ' . $content['family'] . '</a>';
 
                                // Display form
                                loadTemplate('admin_lock_sponsor', FALSE, $content);