From: Stéphane HULARD Date: Tue, 23 Jan 2018 17:48:52 +0000 (+0100) Subject: Fix error when withRemove variable is not defined. X-Git-Tag: 2.3.3~16^2 X-Git-Url: https://git.immae.eu/?p=github%2Fwallabag%2Fwallabag.git;a=commitdiff_plain;h=cc09434ea470a4de2ed37e59f30244736826dc36 Fix error when withRemove variable is not defined. Since the withRemove variable is a template flag, it can be undefined. In the Entry\Card\_content.html.twig template for example, the withRemove variable is not defined. --- diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig index 1317b129..73998b58 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig @@ -3,7 +3,7 @@ {% for tag in tags %}
  • {{ tag.label }} - {% if withRemove %} + {% if withRemove is defined and withRemove == true %} delete