From: Adam Dickmeiss Date: Tue, 13 Feb 2001 20:02:53 +0000 (+0000) Subject: Bug fix: Record retrieval (present) is termiated on error. X-Git-Tag: php-4.0.5RC1~298 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d8c1fb98390ca89570c5b6de43885c7a5573e48;p=php Bug fix: Record retrieval (present) is termiated on error. --- 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)