do not include sphinxclient if the class already exists

master
Andrew Dolgov 11 years ago
parent 74175e6ae3
commit 63edc5c631

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

Loading…
Cancel
Save