]> git.wh0rd.org Git - tt-rss.git/commitdiff
sphinx: type cast port to integer
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 31 May 2013 05:52:43 +0000 (09:52 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 31 May 2013 05:52:43 +0000 (09:52 +0400)
include/functions.php

index a4b604e7dfbeaa0ee1b4e3b20887182efe6164f0..32ec8815f395b6973d2a9f5adfb3837ca22b6af5 100644 (file)
 
                $sphinxpair = explode(":", SPHINX_SERVER, 2);
 
-               $sphinxClient->SetServer($sphinxpair[0], $sphinxpair[1]);
+               $sphinxClient->SetServer($sphinxpair[0], (int)$sphinxpair[1]);
                $sphinxClient->SetConnectTimeout(1);
 
                $sphinxClient->SetFieldWeights(array('title' => 70, 'content' => 30,