mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[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
This commit is contained in:
parent
6fbbb30a81
commit
9358bf3de5
1 changed files with 1 additions and 1 deletions
|
@ -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('"', '"', $this->search_query), $this->indexes);
|
||||
|
|
Loading…
Add table
Reference in a new issue