From 7f35fbbe5c744eb73edc7ebad1f61f79c9f4cfe2 Mon Sep 17 00:00:00 2001 From: Didier Gautheron Date: Mon, 30 Aug 2021 16:26:05 +0200 Subject: [PATCH] Bug 28921: Argument "" isn't numeric in numeric gt (>) at /home/koha/src/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc line 23. To test: 1 - Open OPAC main page 2 - Check opac-error.log or plack-opac-error.log for message as above 3 - Apply patch 4 - Open OPAC main page 5 - Check opac-error.log again, there should be no more warnings --- koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc index f292178697..7a964de596 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc @@ -9,7 +9,7 @@ [% END %] [% BLOCK koha_news_block %] - [% IF ( news.content.count > 0 ) %] + [% IF ( news.content && news.content.count > 0 ) %]
[% FOREACH n IN news.content %]
-- 2.20.1