diff options
Diffstat (limited to 'ext/yaz/php_yaz.c')
| -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); |
