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();