mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
fix setting limit
This commit is contained in:
parent
30ab2f9ef7
commit
3cc7497863
|
@ -137,7 +137,7 @@ class SeedDMS_Lucene_Search {
|
|||
$recs = array();
|
||||
$c = 0;
|
||||
foreach($hits as $hit) {
|
||||
if($c >= $limit['offset'] && ($c-$limit['offset'] < $limit))
|
||||
if($c >= $limit['offset'] && ($c-$limit['offset'] < $limit['limit']))
|
||||
$recs[] = array('id'=>$hit->id, 'document_id'=>$hit->document_id);
|
||||
$c++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user