Skip to content

Commit 46dfc18

Browse files
committed
Bump to version 2.0.6
1 parent 9b76882 commit 46dfc18

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"type": "library",
99
"keywords": ["Sphinx Search","search-engine","api"],
1010
"homepage": "http://sphinxsearch.com/",
11-
"version": "2.0.5",
11+
"version": "2.0.6",
1212
"authors": [
1313
{
1414
"name": "Andrew Aksyonoff",

sphinxapi.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
//
4-
// $Id: sphinxapi.php 3281 2012-07-08 20:45:52Z shodan $
4+
// $Id: sphinxapi.php 3439 2012-10-10 05:47:48Z kevg $
55
//
66

77
//
@@ -742,7 +742,7 @@ function SetMatchMode ( $mode )
742742
/// set ranking mode
743743
function SetRankingMode ( $ranker, $rankexpr="" )
744744
{
745-
assert ( $ranker>=0 && $ranker<SPH_RANK_TOTAL );
745+
assert ( $ranker===0 || $ranker>=1 && $ranker<SPH_RANK_TOTAL );
746746
assert ( is_string($rankexpr) );
747747
$this->_ranker = $ranker;
748748
$this->_rankexpr = $rankexpr;
@@ -1709,5 +1709,5 @@ function FlushAttributes ()
17091709
}
17101710

17111711
//
1712-
// $Id: sphinxapi.php 3281 2012-07-08 20:45:52Z shodan $
1712+
// $Id: sphinxapi.php 3439 2012-10-10 05:47:48Z kevg $
17131713
//

0 commit comments

Comments
 (0)