Possible further fix for #128
[mailer.git] / inc / modules / admin / what-edit_sponsor.php
index e0da7d4..d2b000d 100644 (file)
@@ -64,19 +64,19 @@ if ((REQUEST_ISSET_GET('id')) && (REQUEST_ISSET_GET('mode'))) {
                //  Personal data
                switch ($DATA['gender'])
                {
-                       case "M":
+                       case 'M':
                                define('__GENDER_M', ' selected="selected"');
                                define('__GENDER_F', '');
                                define('__GENDER_C', '');
                                break;
 
-                       case "F":
+                       case 'F':
                                define('__GENDER_M', '');
                                define('__GENDER_F', ' selected="selected"');
                                define('__GENDER_C', '');
                                break;
 
-                       case "C":
+                       case 'C':
                                define('__GENDER_M', '');
                                define('__GENDER_F', '');
                                define('__GENDER_C', ' selected="selected"');
@@ -95,9 +95,10 @@ if ((REQUEST_ISSET_GET('id')) && (REQUEST_ISSET_GET('mode'))) {
                define('__CELL'       , $DATA['cell']);
                define('__EMAIL'      , $DATA['email']);
                define('__URL'        , $DATA['url']);
+
                //  Warning because low points
-               define('__REC_WARNING', ADD_SELECTION('yn', $DATA['receive_warnings'], "receive_warning"));
-               define('__INTERVAL'   , createTimeSelections($DATA['warning_interval'], "warning_interval", "MWDh"));
+               define('__REC_WARNING', ADD_SELECTION('yn', $DATA['receive_warnings'], 'receive_warning'));
+               define('__INTERVAL'   , createTimeSelections($DATA['warning_interval'], 'warning_interval', 'MWDh'));
 
                // Init variables here
                $TPL = sprintf("admin_edit_sponsor_%s", REQUEST_GET('mode'));
@@ -156,10 +157,10 @@ if ((REQUEST_ISSET_GET('id')) && (REQUEST_ISSET_GET('mode'))) {
 
                                case 'edit': // Edit sponsor account
                                        $PASS = true;
-                                       if ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) || ((!REQUEST_ISSET_POST(('pass1'))) && (!REQUEST_ISSET_POST(('pass1'))))) {
+                                       if ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) || ((!REQUEST_ISSET_POST('pass1')) && (!REQUEST_ISSET_POST('pass1')))) {
                                                // Remove passwords
-                                               REQUEST_UNSET_POST(('pass1'));
-                                               REQUEST_UNSET_POST(('pass2'));
+                                               REQUEST_UNSET_POST('pass1');
+                                               REQUEST_UNSET_POST('pass2');
                                                $PASS = false;
                                        }