]> 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 77e120dd7c22c0086a8a2eced2a744c2d6bbb18a..79cc7c84e203e8ab9d08ba2b08c8605b6139c63d 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -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