Skip to content

Commit

Permalink
[BUGFIX] Check if core exists in registry array (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk authored and sebastian-meyer committed May 31, 2024
1 parent e6651d2 commit bd70a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Common/Solr/Solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bd70a64

Please sign in to comment.