From 88cefd37124c6d95a6718831440164cc53c33b71 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 26 Jan 2013 15:57:10 +0100 Subject: [PATCH] tweaked previous merge --- lib/Twig/Extension/Core.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index c1a37d8..fdd6c23 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -1267,7 +1267,7 @@ function twig_include(Twig_Environment $env, $context, $template, $variables = a */ function twig_constant($constant, $object = null) { - if ($object) { + if (null !== $object) { $constant = get_class($object).'::'.$constant; } -- 1.7.2.5