From a5a3a330cfc7c7d6c35db13326745dabf8fe0df3 Mon Sep 17 00:00:00 2001 From: Didier Gautheron Date: Mon, 30 Aug 2021 16:26:05 +0200 Subject: [PATCH] Bug 28921: Remove warning from html_helpers.inc 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 Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- 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.39.5