1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 15:01:30 +00:00

do not include sphinxclient if the class already exists

This commit is contained in:
Andrew Dolgov
2013-07-14 22:28:34 +04:00
parent 74175e6ae3
commit 63edc5c631

View File

@@ -3850,6 +3850,8 @@
} }
function sphinx_search($query, $offset = 0, $limit = 30) { function sphinx_search($query, $offset = 0, $limit = 30) {
if (!class_exists("SphinxClient"))
require_once 'lib/sphinxapi.php'; require_once 'lib/sphinxapi.php';
$sphinxClient = new SphinxClient(); $sphinxClient = new SphinxClient();