From 85aa6b786865c4eecf9c89ee225533d2a2d05140 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 31 May 2023 14:10:35 +0000 Subject: [PATCH] Bug 33873: Improve check for inexistant biblio object Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/includes/js-biblio-format.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-biblio-format.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-biblio-format.inc index c06002600f..5f73dc683a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js-biblio-format.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-biblio-format.inc @@ -9,7 +9,7 @@ */ window.$biblio_to_html = function(biblio, config) { - if (biblio === undefined) { + if (!biblio) { return ''; // empty string for no biblio } -- 2.39.5