]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-user_contct.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-user_contct.php
index 10d53320ab39b2671f8b28981d516e304d94c74d..758ca399139b83e26a0ba423d8119832ae657aaf 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 - 2015 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')) && (isValidId(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?