diff --git a/phpgwapi/js/jsapi/egw_user.js b/phpgwapi/js/jsapi/egw_user.js index 5dba16db60..1d0fa9e0fc 100644 --- a/phpgwapi/js/jsapi/egw_user.js +++ b/phpgwapi/js/jsapi/egw_user.js @@ -128,7 +128,7 @@ egw.extend('user', egw.MODULE_GLOBAL, function() var store = _id < 0 ? accountStore.groups : accountStore.accounts; for(var i=0; i < store.length; ++i) { - if (_id == store[i].value) + if (store && typeof store[i] != 'undefined' && _id == store[i].value) { if (_type == 'delete') {