aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2012-08-01 22:23:51 +0530
committerDhruv <dhruv.goel92@gmail.com>2012-08-01 22:23:51 +0530
commit9358bf3de5fe402ccdc116e6b74e0cd2eee35e37 (patch)
tree77c1fbd562628b7155dce69248710a3b001dab71
parent6fbbb30a817a44fed1fb90ee35fca0d1caf83fcb (diff)
downloadforums-9358bf3de5fe402ccdc116e6b74e0cd2eee35e37.tar
forums-9358bf3de5fe402ccdc116e6b74e0cd2eee35e37.tar.gz
forums-9358bf3de5fe402ccdc116e6b74e0cd2eee35e37.tar.bz2
forums-9358bf3de5fe402ccdc116e6b74e0cd2eee35e37.tar.xz
forums-9358bf3de5fe402ccdc116e6b74e0cd2eee35e37.zip
[ticket/11032] use method GetLastError to get error
Instead of using _error property, use method GetLastError to retrieve the error as sphinx API documentation states. PHPBB3-11032
-rw-r--r--phpBB/includes/search/fulltext_sphinx.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/search/fulltext_sphinx.php b/phpBB/includes/search/fulltext_sphinx.php
index a2ebf1eb69..90ceb29616 100644
--- a/phpBB/includes/search/fulltext_sphinx.php
+++ b/phpBB/includes/search/fulltext_sphinx.php
@@ -500,7 +500,7 @@ class phpbb_search_fulltext_sphinx
// Could be connection to localhost:9312 failed (errno=111,
// msg=Connection refused) during rotate, retry if so
$retries = SPHINX_CONNECT_RETRIES;
- while (!$result && (strpos($this->sphinx->_error, "errno=111,") !== false) && $retries--)
+ while (!$result && (strpos($this->sphinx->GetLastError(), "errno=111,") !== false) && $retries--)
{
usleep(SPHINX_CONNECT_WAIT_TIME);
$result = $this->sphinx->Query($search_query_prefix . str_replace('&quot;', '"', $this->search_query), $this->indexes);