propperly check if a fulltext service exists

This commit is contained in:
Uwe Steinmann 2024-12-10 15:04:20 +01:00
parent a787d61404
commit abe6b94b3e

View File

@ -209,7 +209,7 @@ class SeedDMS_FulltextService {
if($this->index)
return $this->index;
if($this->services[0]) {
if($this->services) {
if($recreate)
$this->index = $this->services[0]['Indexer']::create($this->services[0]['Conf']);
else
@ -222,7 +222,7 @@ class SeedDMS_FulltextService {
public function Search() { /* {{{ */
if($this->search)
return $this->search;
if($this->services[0]) {
if($this->services) {
$this->search = new $this->services[0]['Search']($this->index);
return $this->search;
} else {