From: Andrew Dolgov Date: Sun, 14 Jul 2013 18:28:34 +0000 (+0400) Subject: do not include sphinxclient if the class already exists X-Git-Tag: 1.9~22 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=63edc5c6315ca75305d497987e2d33385d6d30d6;p=tt-rss.git do not include sphinxclient if the class already exists --- diff --git a/include/functions.php b/include/functions.php index 3c1956ea..cda9aeeb 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();