diff --git a/settings/js/users/users.js b/settings/js/users/users.js index ed9999760a9..0cb5fe3e15c 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -616,7 +616,7 @@ $(document).ready(function () { .keypress(function (event) { if (event.keyCode === 13) { if ($(this).val().length > 0) { - $div = $tr.find('div.avatardiv') + var $div = $tr.find('div.avatardiv'); if ($div.length) { $div.imageplaceholder(uid, displayName); }