diff --git a/Classes/Common/Solr/Solr.php b/Classes/Common/Solr/Solr.php index acd6e3a7f..c6eea82e4 100644 --- a/Classes/Common/Solr/Solr.php +++ b/Classes/Common/Solr/Solr.php @@ -301,7 +301,7 @@ public static function getInstance($core = null): Solr if (!empty($core)) { // Check if there is an instance in the registry already. if ( - is_object(self::$registry[$core]) + array_key_exists($core, self::$registry) && self::$registry[$core] instanceof self ) { // Return singleton instance if available.