X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FSphinxSearch%2Fsphinxsearch.php;h=607ac76d2758de203cd5aca3c32fd4a518855c3a;hb=26703076f66f77f337559416cc02101c532d7aa8;hp=46b5e3e28aa58830a599cb4e3a5e8b337c29e5a3;hpb=0dbdcf2936a00282114f1368ead2f5edebc6ae61;p=quix0rs-gnu-social.git diff --git a/plugins/SphinxSearch/sphinxsearch.php b/plugins/SphinxSearch/sphinxsearch.php index 46b5e3e28a..607ac76d27 100644 --- a/plugins/SphinxSearch/sphinxsearch.php +++ b/plugins/SphinxSearch/sphinxsearch.php @@ -65,6 +65,9 @@ class SphinxSearch extends SearchEngine function query($q) { $result = $this->sphinx->query($q, $this->remote_table()); + if ($result === false) { + throw new ServerException($this->sphinx->getLastError()); + } if (!isset($result['matches'])) return false; $id_set = join(', ', array_keys($result['matches'])); $this->target->whereAdd("id in ($id_set)");