1
0
mirror of https://github.com/php/php-src.git synced 2026-04-13 02:52:48 +02:00

Fix yaz_record, type array to return bibliographic record part

This commit is contained in:
Adam Dickmeiss
2003-07-30 09:53:39 +00:00
parent 815be4e5c6
commit 72aa064016

View File

@@ -943,6 +943,8 @@ PHP_FUNCTION(yaz_record)
if (r) {
if (!strcmp(type, "array")) {
Z_External *ext = (Z_External *) ZOOM_record_get(r, "ext", 0);
if (ext->which == Z_External_OPAC)
ext = ext->u.opac->bibliographicRecord;
if (ext) {
oident *ent = oid_getentbyoid(ext->direct_reference);