tweaked previous merge

This commit is contained in:
Fabien Potencier
2013-01-26 15:57:10 +01:00
parent c3a9c53882
commit 88cefd3712
+1 -1
View File
@@ -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;
}