]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-nickname.php
Updated copyright notice as there are changes in this year
[mailer.git] / inc / modules / member / what-nickname.php
index 5312676f6671a0ecc4adaf927cac5746049b2b04..b0d4737e50d501a88c4e2fe2309fdbfe63bb37e9 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -50,7 +50,7 @@ if ((!isExtensionActive('nickname')) && (!isAdmin())) {
        return;
 } // END - if
 
-$isValid = false;
+$isValid = FALSE;
 
 if (isFormSent()) {
        // Nickname was submitted so let's check if it is not already in use
@@ -63,7 +63,7 @@ if (isFormSent()) {
        } // END - if
 } // END - if
 
-if ($isValid === true) {
+if ($isValid === TRUE) {
        // Nickname already in use which is the default
        $content = '{--MEMBER_NICKNAME_ALREADY_IN_USE--}';
 
@@ -103,9 +103,9 @@ if ($isValid === true) {
        // Load template
        displayMessage($content);
 } else {
-       // Do we have already submit the form?
+       // Is there already submit the form?
        if (isPostRequestElementSet('nickname')) {
-               loadTemplate('admin_settings_unsaved', false, '{--MEMBER_NICKNAME_IS_INVALID--}');
+               displayErrorMessage('{--MEMBER_NICKNAME_IS_INVALID--}');
        } // END - if
 
        // Load Template