diff --git a/CRM/Core/Component.php b/CRM/Core/Component.php index b9de5379701b..988a7059f1b3 100644 --- a/CRM/Core/Component.php +++ b/CRM/Core/Component.php @@ -139,7 +139,7 @@ static public function &getEnabledComponents($force = FALSE) { } static public function flushEnabledComponents() { - self::getEnabledComponents(TRUE); + unset(Civi::$statics[__CLASS__]); } /**