]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not include sphinxclient if the class already exists
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 14 Jul 2013 18:28:34 +0000 (22:28 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 14 Jul 2013 18:28:34 +0000 (22:28 +0400)
include/functions.php

index 3c1956ea225710ef83979a1069d2fefdbee9e5ef..cda9aeeb835b1a8cdd9e00a638a0f8519383be2c 100644 (file)
        }
 
        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();