From ba4ddb1d8d9492b73b0a8bda66391a3c65278271 Mon Sep 17 00:00:00 2001 From: Pascal Deklerck Date: Wed, 13 Jun 2018 21:04:21 +0200 Subject: [PATCH] Test if addon_hooks is an array before using it --- view/templates/head.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view/templates/head.tpl b/view/templates/head.tpl index 75a676a91e..b3dfbc1f4e 100644 --- a/view/templates/head.tpl +++ b/view/templates/head.tpl @@ -45,9 +45,11 @@ +{{if is_array($addon_hooks)}} {{foreach $addon_hooks as $addon_hook}} {{/foreach}} +{{/if}}