1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Fixed user-settings display name minimum-length check that was still active when display-names was disabled. ie. couldn't update.

This commit is contained in:
CaMer0n
2006-12-31 18:50:37 +00:00
parent 49e37b264e
commit 43400b4b38

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/usersettings.php,v $ | $Source: /cvs_backup/e107_0.8/usersettings.php,v $
| $Revision: 1.2 $ | $Revision: 1.3 $
| $Date: 2006-12-30 22:39:43 $ | $Date: 2006-12-31 18:50:37 $
| $Author: e107steved $ | $Author: e107coders $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -180,10 +180,9 @@ if (isset($_POST['updatesettings']))
$error .= LAN_408."\\n"; $error .= LAN_408."\\n";
} }
// $username = strip_tags($_POST['username']);
// Impose a minimum length on display name // Impose a minimum length on display name
$_POST['username'] = trim($_POST['username']); $username = trim(strip_tags($_POST['username']));
if (strlen($_POST['username']) < 2) if (isset($_POST['username']) && strlen($username) < 2)
{ {
$error .= LAN_USET_12."\\n"; $error .= LAN_USET_12."\\n";
} }