mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Check that array entry is there before looking into it.
Prevents error when accessing deleted user.
This commit is contained in:
parent
7c3683f3e8
commit
f8540288d8
@ -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')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user