mailer project continued:
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index b66eb9fd95b7c25f11d22c976fc11bcce1809123..052984e3910c084b8968ca47d5a456dd60bb5300 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 *
@@ -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