1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-02-07 01:54:16 +01:00

Contacts: Test if internal data structure exists before testing an element

This commit is contained in:
Thomas Tanghus 2013-01-02 01:15:55 +01:00
parent 813e4f5508
commit d176fa5750

View File

@ -1176,7 +1176,7 @@ OC.Contacts = OC.Contacts || {};
* @returns Boolean * @returns Boolean
*/ */
Contact.prototype.inGroup = function(name) { Contact.prototype.inGroup = function(name) {
if(!this.data.CATEGORIES) { if(!this.data || this.data.CATEGORIES) {
return false; return false;
} }