]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-unlock_sponsor.php
Mailer project continued:
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index b66eb9fd95b7c25f11d22c976fc11bcce1809123..831b2827924d2ffd0e37f6db99c03890881c125d 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -57,9 +57,9 @@ if (isFormSent()) {
 
                        // Load his personal data
                        $result_main = SQL_QUERY_ESC("SELECT
-       `id`,`gender`,`surname`,`family`,`email`,`remote_addr`,
+       `id`, `gender`, `surname`, `family`, `email`, `remote_addr`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
-       `points_amount`,`points_used`,
+       `points_amount`, `points_used`,
        (`points_amount` + `points_used`) AS `points`,
        `refid`
 FROM
@@ -99,7 +99,7 @@ ORDER BY
 
                                                // Set default email
                                                $content['email'] = '{--SPONSOR_NO_ADMIN--}';
-                                               if ($content['admin_id'] > 0) {
+                                               if (isValidUserId($content['admin_id'])) {
                                                        // Load admin's email address for contact
                                                        $content['email'] = getAdminEmail($content['admin_id']);
                                                } // END - if
@@ -199,7 +199,7 @@ LIMIT 1",
 
 // Begin listing of all pending sponsor accounts
 $result = SQL_QUERY("SELECT
-       `id`,`gender`,`surname`,`family`,`email`,`remote_addr`,
+       `id`, `gender`, `surname`, `family`, `email`, `remote_addr`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`