From de968a42b4a329b0cf4957d0cde614ade3a2f1d3 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 15 Aug 2010 06:30:15 -0400 Subject: [PATCH] Initialize local pragmas with empty array. --- Mustache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mustache.php b/Mustache.php index 5c7c319..1ba62e3 100644 --- a/Mustache.php +++ b/Mustache.php @@ -98,7 +98,7 @@ class Mustache { self::PRAGMA_UNESCAPED ); - protected $_localPragmas; + protected $_localPragmas = array(); /** * Mustache class constructor. @@ -130,7 +130,7 @@ class Mustache { public function __clone() { $this->_otag = '{{'; $this->_ctag = '}}'; - $this->_localPragmas = null; + $this->_localPragmas = array(); if ($keys = array_keys($this->_context)) { $last = array_pop($keys);