]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-del_sponsor.php
'what','action','module' and 'output_mode' wrapped into functions (WARNUNG: Code...
[mailer.git] / inc / modules / admin / what-del_sponsor.php
index 9291a2a39fed2939c4c16eba1a68548a760f1afb..71579574af81875a0984c7ac21f88ea53e442108 100644 (file)
@@ -40,7 +40,7 @@
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
-}
+} // END - if
 
 // Add description as navigation point
 ADD_DESCR('admin', __FILE__);
@@ -51,7 +51,7 @@ if (REQUEST_ISSET_GET('id')) {
        array(bigintval(REQUEST_GET('id'))), __FILE__, __LINE__);
        if (SQL_NUMROWS($result) == 1) {
                // Remove sponsor
-               if (IS_FORM_SENT()) {
+               if (isFormSent()) {
                        // Load data and remember it in constants
                        list($email, $gender, $surname, $family) = SQL_FETCHROW($result);
 
@@ -77,7 +77,7 @@ if (REQUEST_ISSET_GET('id')) {
 
                        // Output message
                        LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('ADMIN_SPONSOR_DELETED'), bigintval(REQUEST_GET('id'))));
-               } elseif (REQUEST_ISSET_POST(('no'))) {
+               } elseif (REQUEST_ISSET_POST('no')) {
                        // Do not delete him...
                        redirectToUrl('modules.php?module=admin&what=list_sponsor&id='.bigintval(REQUEST_GET('id')));
                } else {