From: Fabien Potencier Date: Thu, 6 Jan 2011 07:51:56 +0000 (+0100) Subject: fixed typo X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=03df6d4da72743e3339cfb8031b4056406e3c995;p=konrad%2Ftwig.git fixed typo --- 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; } /**