]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-register.php
Simplified some more code:
[mailer.git] / inc / modules / guest / what-register.php
index 98c7d4ee983714944fc012fb96ba112a24b6d9ae..65855155377b0d8998ea675a9359d3d815c7e20f 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -146,12 +147,14 @@ if ((isFormSent()) && (isRegistrationDataComplete())) {
        $content['city']      = SQL_ESCAPE(postRequestParameter('city'));
        $content['email']     = SQL_ESCAPE(postRequestParameter('email'));
 
-       // Prepare country selection box
-       $OUT  = "<select name=\"country_code\" class=\"guest_select\" size=\"1\">\n";
+       // The admin may see all
        $whereStatement = "WHERE `is_active`='Y'";
        if (isAdmin()) $whereStatement = '';
+
+       // Prepare country selection box
+       $OUT  = '<select name="country_code" class="guest_select" size="1">';
        $OUT .= generateOptionList('countries', 'id', 'descr', postRequestParameter('country_code'), 'code', $whereStatement);
-       $OUT .= "</select>";
+       $OUT .= '</select>';
        $content['country'] = $OUT;
 
        // Set must-fillout fields