From 7aa20273f13355e0153e94915b47a9440d8ed333 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 1 Oct 2014 19:59:19 +0000 Subject: [PATCH] Check that array entry is there before looking into it. Prevents error when accessing deleted user. --- phpgwapi/js/jsapi/egw_user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {