diff --git a/search/plugins/ezsolr/ezsolr.php b/search/plugins/ezsolr/ezsolr.php index 52dbc911..72d91216 100644 --- a/search/plugins/ezsolr/ezsolr.php +++ b/search/plugins/ezsolr/ezsolr.php @@ -898,7 +898,8 @@ public function removeObjectById( $contentObjectId, $commit = null ) { foreach ( $docs as $languageCode => $doc ) { - $this->SolrLanguageShards[$languageCode]->deleteDocs( array( $doc ), false, $commit, $optimize ); + if ($this->SolrLanguageShards[$languageCode] instanceof eZSolrBase ) + $this->SolrLanguageShards[$languageCode]->deleteDocs( array( $doc ), false, $commit, $optimize ); } } else