]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-user_contct.php
The usual changes: forms fixed
[mailer.git] / inc / modules / admin / what-user_contct.php
index 10d53320ab39b2671f8b28981d516e304d94c74d..2de64b2ac80dc8a25fca45fd592bcfa78b9ed98c 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 *
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 // Is a user id given?
-if ((isGetRequestElementSet('userid')) && (bigintval(getRequestElement('userid')) > 0)) {
+if ((isGetRequestElementSet('userid')) && (isValidUserId(getRequestElement('userid')))) {
        // Is a user account found?
        if (fetchUserData(getRequestElement('userid'))) {
                // Load the data
@@ -68,7 +68,7 @@ if ((isGetRequestElementSet('userid')) && (bigintval(getRequestElement('userid')
                        displayMessage('{--ADMIN_USER_CONTACTED--}');
                } else {
                        // Load contact form template
-                       loadTemplate('admin_contct_user_form', false, $content);
+                       loadTemplate('admin_contct_user_form', FALSE, $content);
                }
        } else {
                // Not found?