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:
parent
813e4f5508
commit
d176fa5750
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user