From: Andre E. <in...@us...> - 2004-05-18 09:19:27
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10935 Modified Files: manage_user_update.php Log Message: Removed excess comparisons. (Thanks Jeroen) Index: manage_user_update.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_user_update.php,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- manage_user_update.php 18 May 2004 03:33:14 -0000 1.32 +++ manage_user_update.php 18 May 2004 09:19:17 -0000 1.33 @@ -32,8 +32,7 @@ $t_old_username = user_get_field( $f_user_id, 'username' ); # check that the username is unique - if ( $t_old_username != $f_username - && 0 != strcasecmp( $t_old_username, $f_username ) + if ( 0 != strcasecmp( $t_old_username, $f_username ) && false == user_is_name_unique( $f_username ) ) { trigger_error( ERROR_USER_NAME_NOT_UNIQUE, ERROR ); } |