1
0
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:
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
*/
Contact.prototype.inGroup = function(name) {
if(!this.data.CATEGORIES) {
if(!this.data || this.data.CATEGORIES) {
return false;
}