summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-14 22:28:34 +0400
committerAndrew Dolgov <[email protected]>2013-07-14 22:28:34 +0400
commit63edc5c6315ca75305d497987e2d33385d6d30d6 (patch)
tree95f537e0107fd61621c89f73899f2516f69f730f /include
parent74175e6ae31aaab56f45468b3f809cb71d74b48b (diff)
do not include sphinxclient if the class already exists
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 3c1956ea2..cda9aeeb8 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3850,7 +3850,9 @@
}
function sphinx_search($query, $offset = 0, $limit = 30) {
- require_once 'lib/sphinxapi.php';
+
+ if (!class_exists("SphinxClient"))
+ require_once 'lib/sphinxapi.php';
$sphinxClient = new SphinxClient();