Skip to content

Commit

Permalink
Merge pull request #22898 from MegaphoneJon/timezone-check-condition
Browse files Browse the repository at this point in the history
Don't perform event timezone check if CiviEvent is disabled
  • Loading branch information
mattwire authored Mar 9, 2022
2 parents 540ac54 + 5389372 commit cc760f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Utils/Check/Component/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit cc760f3

Please sign in to comment.