Don't perform event timezone check if CiviEvent is disabled
authorJon Goldberg <jon@megaphonetech.com>
Mon, 7 Mar 2022 15:39:07 +0000 (10:39 -0500)
committerJon Goldberg <jon@megaphonetech.com>
Wed, 9 Mar 2022 20:14:01 +0000 (15:14 -0500)
CRM/Utils/Check/Component/Event.php

index 1ac9f94d26d687a5af3ddf43f8eb5f4333d724ac..c84cc7c9cc0201a0167c6350540f14a36ac89fbf 100644 (file)
@@ -5,6 +5,13 @@
  */
 class CRM_Utils_Check_Component_Event extends CRM_Utils_Check_Component {
 
+  /**
+   * @inheritDoc
+   */
+  public function isEnabled() {
+    return CRM_Core_Component::isEnabled('CiviEvent');
+  }
+
   /**
    * Check events have timezone set.
    *