]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admins_add.php
Typo in function name fixed, double->single quotes, some HTML fixes
[mailer.git] / inc / modules / admin / what-admins_add.php
index 4339a81c380da94cc03b5b21c62e6965b010ea21..a3d9b1f931b705925b1445fe7f65cfaff41876d1 100644 (file)
@@ -48,9 +48,9 @@ ADD_DESCR('admin', __FILE__);
 // Display form is default
 $FORM = true;
 
-if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('login'))) && (REQUEST_ISSET_POST(('email'))) && (REQUEST_ISSET_POST(('pass1'))) && (REQUEST_ISSET_POST(('pass2'))) && (REQUEST_POST('pass1') == REQUEST_POST('pass2'))) {
+if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('login'))) && (REQUEST_ISSET_POST('email')) && (REQUEST_ISSET_POST(('pass1'))) && (REQUEST_ISSET_POST(('pass2'))) && (REQUEST_POST('pass1') == REQUEST_POST('pass2'))) {
        // Add admin when not added already
-       if (REGISTER_ADMIN(REQUEST_POST('login'), generateHash(REQUEST_POST('pass1')), REQUEST_POST('email')) == "done") {
+       if (REGISTER_ADMIN(REQUEST_POST('login'), generateHash(REQUEST_POST('pass1')), REQUEST_POST('email')) == 'done') {
                // Do not ouput any form!
                $FORM = false;
 
@@ -67,7 +67,7 @@ if ($FORM === true) {
        // Set missing elements
        // @TODO Do we still need this ugly code here?
        if (!REQUEST_ISSET_POST(('login'))) REQUEST_SET_POST('login', '');
-       if (!REQUEST_ISSET_POST(('email'))) REQUEST_SET_POST('email', '');
+       if (!REQUEST_ISSET_POST('email')) REQUEST_SET_POST('email', '');
 
        // Load form from template
        LOAD_TEMPLATE("admin_admins_add");