marionnewlevant / craft-mnbreakandcontinue

{%break%} and {%continue%} twig tags for craft.
MIT License
20 stars 4 forks source link

Update Continue_Node.php to check $context['loop'] #2

Closed bhuvidya closed 8 years ago

bhuvidya commented 8 years ago

Added a check to make sure $context['loop'] exists before accessing it. It seems that $context['loop'] isn't set unless the loop variable is directly accessed/used in the twig template.

marionnewlevant commented 8 years ago

Aack! I just noticed this myself. Need to keep a better eye on my issues