Fix backward-compatability for new method in CRM_Contact_BAO_Query_Hook
authorColeman Watts <coleman@civicrm.org>
Sun, 13 Mar 2022 06:26:10 +0000 (01:26 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 13 Mar 2022 15:16:48 +0000 (11:16 -0400)
commit095060e1b7424f709d7947633c3bf764023873e7
tree7f1c7d1b8d71f4cc713cba9315c2254b0f2339db
parent9fa8363c73a769710e1006a8793aac3a6004ce38
Fix backward-compatability for new method in CRM_Contact_BAO_Query_Hook

The method getDefaultReturnProperties was just added to CRM_Contact_BAO_Query_Hook,
but some extensions do not yet implement it, and also do not extend that class so
cannot inherit the default method.

This adds a guard around calling the new method to avoid crashes.
CRM/Contact/BAO/Query/Hook.php