From 03df6d4da72743e3339cfb8031b4056406e3c995 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 6 Jan 2011 08:51:56 +0100 Subject: [PATCH] fixed typo --- lib/Twig/Environment.php | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 4100640..52132b4 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -222,11 +222,7 @@ class Twig_Environment */ public function setCache($cache) { - if (!$this->cache) { - $this->cache = false; - } - - $this->cache = $cache; + $this->cache = $cache ? $cache : false; } /** -- 1.7.2.5