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
1 changed files with 3 additions and 1 deletions

View File

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