mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
propperly check if a fulltext service exists
This commit is contained in:
parent
a787d61404
commit
abe6b94b3e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user