diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-07-09 01:21:01 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-07-09 01:21:01 +0400 |
commit | 9f038a4a83dbfb5ef1141bc65a108b547a41d3d2 (patch) | |
tree | de3d8fa3e319debcbb750f7831f28d00cb04bee3 /plugins/Referers | |
parent | 08ae06fc31efef0791a11cef23bebe530c1fdbac (diff) |
Fix bug in referrers index.twig. Check that '...Percent' variables are defined before checking if not empty.
Diffstat (limited to 'plugins/Referers')
-rw-r--r-- | plugins/Referers/templates/index.twig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Referers/templates/index.twig b/plugins/Referers/templates/index.twig index f456ba1e99..b3bb76b9b0 100644 --- a/plugins/Referers/templates/index.twig +++ b/plugins/Referers/templates/index.twig @@ -8,7 +8,7 @@ <div id='leftcolumn'> <div class="sparkline">{{ sparkline(urlSparklineDirectEntry) }} {{ 'Referers_TypeDirectEntries'|translate("<strong>"~visitorsFromDirectEntry~"</strong>")|raw }} - {% if visitorsFromDirectEntryPercent is not empty %}, + {% if visitorsFromDirectEntryPercent|default is not empty %}, <strong>{{ visitorsFromDirectEntryPercent }}%</strong> of visits {% endif %} {% if visitorsFromDirectEntryEvolution is not empty %} @@ -17,7 +17,7 @@ </div> <div class="sparkline">{{ sparkline(urlSparklineSearchEngines) }} {{ 'Referers_TypeSearchEngines'|translate("<strong>"~visitorsFromSearchEngines~"</strong>")|raw }} - {% if visitorsFromSearchEnginesPercent is not empty %}, + {% if visitorsFromSearchEnginesPercent|default is not empty %}, <strong>{{ visitorsFromSearchEnginesPercent }}%</strong> of visits {% endif %} {% if visitorsFromSearchEnginesEvolution is not empty %} @@ -28,7 +28,7 @@ <div id='rightcolumn'> <div class="sparkline">{{ sparkline(urlSparklineWebsites) }} {{ 'Referers_TypeWebsites'|translate("<strong>"~visitorsFromWebsites~"</strong>")|raw }} - {% if visitorsFromWebsitesPercent is not empty %}, + {% if visitorsFromWebsitesPercent|default is not empty %}, <strong>{{ visitorsFromWebsitesPercent }}%</strong> of visits {% endif %} {% if visitorsFromWebsitesEvolution is not empty %} @@ -37,7 +37,7 @@ </div> <div class="sparkline">{{ sparkline(urlSparklineCampaigns) }} {{ 'Referers_TypeCampaigns'|translate("<strong>"~visitorsFromCampaigns~"</strong>")|raw }} - {% if visitorsFromCampaignsPercent is not empty %}, + {% if visitorsFromCampaignsPercent|default is not empty %}, <strong>{{ visitorsFromCampaignsPercent }}%</strong> of visits {% endif %} {% if visitorsFromCampaignsEvolution is not empty %} |