From: Fabien Potencier Date: Sat, 26 Jan 2013 14:57:10 +0000 (+0100) Subject: tweaked previous merge X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=88cefd37124c6d95a6718831440164cc53c33b71;p=web%2Fkonrad%2Ftwig.git tweaked previous merge --- 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; }