Updated section short-circuit logic to actually run when only inverted sections exist.
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ class Mustache {
|
||||
* @return string
|
||||
*/
|
||||
protected function renderSection($template, &$context) {
|
||||
if (strpos($template, $this->otag . '#') === false) {
|
||||
if (strpos($template, $this->otag . '#') === false && strpos($template, $this->otag . '^') === false) {
|
||||
return $template;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user