diff options
Diffstat (limited to 'ext/yaz/php_yaz.c')
| -rw-r--r-- | ext/yaz/php_yaz.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c index 1c2f41a472..868e487bb2 100644 --- a/ext/yaz/php_yaz.c +++ b/ext/yaz/php_yaz.c @@ -746,11 +746,10 @@ static int send_present (Yaz_Association t) Z_PresentRequest *req = apdu->u.presentRequest; int i = 0; + if (t->error) /* don't continue on error */ + return 0; if (!t->resultSets) /* no result set yet? */ - { return 0; - } - while (t->resultSets->recordList) { if (i >= t->resultSets->recordList->num_records) |
