diff --git a/CRM/Utils/Check/Component.php b/CRM/Utils/Check/Component.php index 68536908600c..fcd06ca051aa 100644 --- a/CRM/Utils/Check/Component.php +++ b/CRM/Utils/Check/Component.php @@ -88,19 +88,10 @@ public function checkAll() { * @throws \Civi\API\Exception\UnauthorizedException */ public function isDisabled($method) { - try { - $checks = $this->getChecksConfig(); - if (!empty($checks[$method])) { - return (bool) empty($checks[$method]['is_active']); - } + $checks = $this->getChecksConfig(); + if (isset($checks[$method]['is_active'])) { + return !$checks[$method]['is_active']; } - catch (PEAR_Exception $e) { - // if we're hitting this, DB migration to 5.19 probably hasn't run yet, so - // is_active doesn't exist. Ignore this error so the status check (which - // might warn about missing migrations!) still renders. - // TODO: remove at some point after 5.19 - } - return FALSE; }