diff options
author | Adam Dickmeiss <dickmeiss@php.net> | 2001-02-19 17:06:40 +0000 |
---|---|---|
committer | Adam Dickmeiss <dickmeiss@php.net> | 2001-02-19 17:06:40 +0000 |
commit | c211778f5df261b0df737e39d85d0cd6d9ac1ad7 (patch) | |
tree | 530db0e0c694e03d34d5bb041a12fcc364e19713 /ext/yaz/php_yaz.c | |
parent | 0eec8cf2f729e01ee26afa786bf272ac1bbc7bdb (diff) | |
download | php-git-c211778f5df261b0df737e39d85d0cd6d9ac1ad7.tar.gz |
Bug fix: number of records in yaz_range wrongly set to zero.
Diffstat (limited to 'ext/yaz/php_yaz.c')
-rw-r--r-- | ext/yaz/php_yaz.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c index 868e487bb2..5f34077675 100644 --- a/ext/yaz/php_yaz.c +++ b/ext/yaz/php_yaz.c @@ -360,10 +360,11 @@ static void handle_records (Yaz_Association t, Z_Records *sr, t->resultSets->recordList->records[i] = 0; if (t->numberOfRecordsRequested + t->resultSetStartPoint-1 > t->resultSets->resultCount) - t->numberOfRecordsRequested = t->resultSets->resultCount - - t->resultSetStartPoint + 1; - t->resultSets->recordList->num_records = - t->numberOfRecordsRequested; + t->resultSets->recordList->num_records = + t->resultSets->resultCount - t->resultSetStartPoint + 1; + else + t->resultSets->recordList->num_records = + t->numberOfRecordsRequested; } if (sr && sr->which == Z_Records_DBOSD) { |