Merge pull request #19063 from christianwach/lab-core-2213
[civicrm-core.git] / CRM / Utils / Check / Component.php
index 5b5dcc746258972805f8271062c29767e88aa369..2f57004adeac08cab6f600a86befab37e61c55f3 100644 (file)
@@ -27,7 +27,7 @@ abstract class CRM_Utils_Check_Component {
    * @throws \Civi\API\Exception\UnauthorizedException
    */
   public function getChecksConfig() {
-    if (empty(Civi::$statics[__FUNCTION__])) {
+    if (!isset(Civi::$statics[__FUNCTION__])) {
       Civi::$statics[__FUNCTION__] = (array) StatusPreference::get(FALSE)
         ->addWhere('domain_id', '=', 'current_domain')
         ->execute()->indexBy('name');