Initialize local pragmas with empty array.
This commit is contained in:
+2
-2
@@ -98,7 +98,7 @@ class Mustache {
|
|||||||
self::PRAGMA_UNESCAPED
|
self::PRAGMA_UNESCAPED
|
||||||
);
|
);
|
||||||
|
|
||||||
protected $_localPragmas;
|
protected $_localPragmas = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mustache class constructor.
|
* Mustache class constructor.
|
||||||
@@ -130,7 +130,7 @@ class Mustache {
|
|||||||
public function __clone() {
|
public function __clone() {
|
||||||
$this->_otag = '{{';
|
$this->_otag = '{{';
|
||||||
$this->_ctag = '}}';
|
$this->_ctag = '}}';
|
||||||
$this->_localPragmas = null;
|
$this->_localPragmas = array();
|
||||||
|
|
||||||
if ($keys = array_keys($this->_context)) {
|
if ($keys = array_keys($this->_context)) {
|
||||||
$last = array_pop($keys);
|
$last = array_pop($keys);
|
||||||
|
|||||||
Reference in New Issue
Block a user