diff options
| author | Adam Dickmeiss <dickmeiss@php.net> | 2003-07-30 09:53:39 +0000 |
|---|---|---|
| committer | Adam Dickmeiss <dickmeiss@php.net> | 2003-07-30 09:53:39 +0000 |
| commit | 72aa064016df89bd4b82e2f6d33ddae8df7b139f (patch) | |
| tree | 58d341e56452fbfaf5711a02917015c457c19c38 | |
| parent | 815be4e5c639a3471db5d61d937f95ed4c1121a3 (diff) | |
| download | php-git-72aa064016df89bd4b82e2f6d33ddae8df7b139f.tar.gz | |
Fix yaz_record, type array to return bibliographic record part
| -rw-r--r-- | ext/yaz/php_yaz.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c index 74e3b4c161..1b549a4063 100644 --- a/ext/yaz/php_yaz.c +++ b/ext/yaz/php_yaz.c @@ -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); |
