Added a return so that the function ends after throwing an exception. This fixes...
authorDerick Rethans <github@derickrethans.nl>
Mon, 25 Jul 2011 15:24:38 +0000 (16:24 +0100)
committerDerick Rethans <github@derickrethans.nl>
Mon, 25 Jul 2011 15:24:38 +0000 (16:24 +0100)
twig.c

diff --git a/twig.c b/twig.c
index f6f4e67..2b36948 100644 (file)
--- a/twig.c
+++ b/twig.c
@@ -774,6 +774,7 @@ PHP_FUNCTION(twig_template_get_attributes)
                        RETURN_FALSE;
                }
                TWIG_THROW_EXCEPTION("Twig_Error_Runtime", "Item \"%s\" for \"%s\" does not exist", item, object);
+               return;
        }
 /*
        // get some information about the object