diff --git a/usersettings.php b/usersettings.php index f1fc1767f..1d3974e89 100644 --- a/usersettings.php +++ b/usersettings.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/usersettings.php,v $ -| $Revision: 1.13 $ -| $Date: 2007-08-29 19:44:44 $ +| $Revision: 1.14 $ +| $Date: 2007-09-18 19:12:27 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -219,7 +219,7 @@ if (isset($_POST['updatesettings'])) } // Display Name exists. - if ($sql->db_Count("user", "(*)", "WHERE `user_name`='".$username."' AND `user_id` != '".USERID."' ")) + if ($sql->db_Count("user", "(*)", "WHERE `user_name`='".$username."' AND `user_id` != '".intval($inp)."' ")) { $error .= LAN_USET_17; }