diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 59526fa701fd..de0dff3aeecc 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -526,7 +526,7 @@ var UserList = { } if ( ['default', 'none'].indexOf(quota) === -1 - && (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0) + && (!OC.Util.computerFileSize(quota)) ) { // the select component has added the bogus value, delete it again $select.find('option[selected]').remove();