]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-lock_user.php
Large code cleanups:
[mailer.git] / inc / modules / admin / what-lock_user.php
index 62ac99dbf4642fad9d61f3651dd87bfa6f4876b4..79cc7c84e203e8ab9d08ba2b08c8605b6139c63d 100644 (file)
@@ -55,7 +55,7 @@ if (isGetRequestElementSet('userid')) {
                        // Ok, lock the account!
                        if (isExtensionInstalledAndNewer('user', '0.3.5')) {
                                // Lock with reason
-                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `status`='LOCKED', `lock_reason`='%s', `lock_timestamp`=NOW() WHERE `userid`=%s LIMIT 1",
+                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `status`='LOCKED',`lock_reason`='%s',`lock_timestamp`=NOW() WHERE `userid`=%s LIMIT 1",
                                        array(postRequestElement('reason'), bigintval(getRequestElement('userid'))), __FILE__, __LINE__);
                        } else {
                                // Lock with no lock reason saved
@@ -103,7 +103,7 @@ LIMIT 1",
                                // Send away...
                                sendEmail(bigintval(getRequestElement('userid')), '{--ADMIN_UNLOCKED_SUBJECT--}', $message);
                                if (isExtensionActive('rallye')) {
-                                       addUserToReferalRallye(getRequestElement('userid'));
+                                       addUserToReferralRallye(getRequestElement('userid'));
                                } // END - if
                        } // END - if