]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admins_edit.php
Rewrites/fixes for handling config entries in SQLs
[mailer.git] / inc / modules / admin / what-admins_edit.php
index 33cc174e1b5acdc91d033eb9fce72481982fffb0..05747bc21edfd18a0604869df6bc6b6525897c2a 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 *
@@ -57,17 +58,17 @@ if (isGetRequestParameterSet('admin')) {
        setPostRequestParameter('sel', array($adminId => 1));
 } // END - if
 
-if ((isPostRequestParameterSet('edit')) && (countPostSelection() > 0)) {
+if ((isFormSent('edit')) && (countPostSelection() > 0)) {
        // Edit account(s)
        adminsEditAdminAccount(postRequestArray());
-} elseif ((isPostRequestParameterSet('change')) && (count(postRequestParameter('login')) > 0)) {
+} elseif ((isFormSent('change')) && (count(postRequestParameter('login')) > 0)) {
        // Change admin accounts
        adminsChangeAdminAccount(postRequestArray());
-} elseif ((isPostRequestParameterSet('del')) && (countPostSelection() > 0)) {
+} elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
        // Show admin accounts for deletetion
        adminsDeleteAdminAccount(postRequestArray());
 } else {
-       if ((isPostRequestParameterSet('remove')) && (countPostSelection() > 0)) {
+       if ((isFormSent('remove')) && (countPostSelection() > 0)) {
                // Remove accounts now
                adminsRemoveAdminAccount(postRequestArray());
        } // END - if