mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Contacts: Test if internal data structure exists before testing an element
This commit is contained in:
parent
813e4f5508
commit
d176fa5750
@ -1176,7 +1176,7 @@ OC.Contacts = OC.Contacts || {};
|
||||
* @returns Boolean
|
||||
*/
|
||||
Contact.prototype.inGroup = function(name) {
|
||||
if(!this.data.CATEGORIES) {
|
||||
if(!this.data || this.data.CATEGORIES) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user