From ca6d6a5913e57e2d2fdb16f4107e3cdba874d2f6 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 (cherry picked from commit 0630b79e4a740dac0992114d40442af0be5b57ce) Signed-off-by: Matt Blenkinsop --- 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