From 66a3ec9452d20bb53a3ddc39cd69e4702a10d1ad Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 4 Jan 2021 16:06:34 +0100 Subject: [PATCH] Bug 26707: Prevent warning Argument "" isn't numeric in numeric gt (>) at /kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc line 158. See commit ab29b5efdc763269399c06aa62ac0a36a93152f8 Bug 18762: Remove warnings from xt/author/valid-templates.t Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc index b004628bcb..d55c57cdff 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc @@ -151,7 +151,7 @@ CAN_user_serials_create_subscription ) %] [% END %] [% END %] - [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %] + [% IF ( add_to_some_private_shelves and add_to_some_private_shelves.count > 10 ) or ( add_to_some_public_shelves and add_to_some_public_shelves.count > 10 ) %]
  • More lists
  • -- 2.39.5