mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 22:21:27 +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)
|
if($this->index)
|
||||||
return $this->index;
|
return $this->index;
|
||||||
|
|
||||||
if($this->services[0]) {
|
if($this->services) {
|
||||||
if($recreate)
|
if($recreate)
|
||||||
$this->index = $this->services[0]['Indexer']::create($this->services[0]['Conf']);
|
$this->index = $this->services[0]['Indexer']::create($this->services[0]['Conf']);
|
||||||
else
|
else
|
||||||
|
@ -222,7 +222,7 @@ class SeedDMS_FulltextService {
|
||||||
public function Search() { /* {{{ */
|
public function Search() { /* {{{ */
|
||||||
if($this->search)
|
if($this->search)
|
||||||
return $this->search;
|
return $this->search;
|
||||||
if($this->services[0]) {
|
if($this->services) {
|
||||||
$this->search = new $this->services[0]['Search']($this->index);
|
$this->search = new $this->services[0]['Search']($this->index);
|
||||||
return $this->search;
|
return $this->search;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user