summaryrefslogtreecommitdiff
path: root/lib/MiniTemplator.class.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-07 01:34:49 -0700
committerAndrew Dolgov <[email protected]>2013-05-07 01:34:49 -0700
commita4fd183b5853867a9293dba438512d8400e6b65e (patch)
tree9776db47df16c7daa91f7a0e2c257031be75d33e /lib/MiniTemplator.class.php
parent75933cf00d4331fd27821af03cadbb2e7c83da79 (diff)
parent6f7798b6434f5ef6073447998c436901b507e3df (diff)
Merge pull request #180 from rlerdorf/master
Fix some bugs found by static analysis
Diffstat (limited to 'lib/MiniTemplator.class.php')
-rw-r--r--lib/MiniTemplator.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MiniTemplator.class.php b/lib/MiniTemplator.class.php
index 69281cb5e..a139473f9 100644
--- a/lib/MiniTemplator.class.php
+++ b/lib/MiniTemplator.class.php
@@ -336,7 +336,7 @@ function processBeginBlockCmd ($parms, $cmdTPosBegin, $cmdTPosEnd) {
$this->openBlocksTab[$this->currentNestingLevel] = $blockNo;
$this->currentNestingLevel += 1;
if ($this->currentNestingLevel > $this->maxNestingLevel) {
- $trhis->triggerError ("Block nesting overflow in template at offset $cmdTPosBegin.");
+ $this->triggerError ("Block nesting overflow in template at offset $cmdTPosBegin.");
return false; }
return true; }
@@ -844,7 +844,7 @@ function readFileIntoString ($fileName, &$s) {
$fh = fopen($fileName,"rb");
if ($fh === false) return false;
$fileSize = filesize($fileName);
- if ($fileSize === false) {close ($fh); return false; }
+ if ($fileSize === false) {fclose ($fh); return false; }
$s = fread($fh,$fileSize);
fclose ($fh);
if (strlen($s) != $fileSize) return false;