do not include sphinxclient if the class already exists
This commit is contained in:
parent
74175e6ae3
commit
63edc5c631
|
@ -3850,6 +3850,8 @@
|
|||
}
|
||||
|
||||
function sphinx_search($query, $offset = 0, $limit = 30) {
|
||||
|
||||
if (!class_exists("SphinxClient"))
|
||||
require_once 'lib/sphinxapi.php';
|
||||
|
||||
$sphinxClient = new SphinxClient();
|
||||
|
|
Loading…
Reference in New Issue