Browse Source

minitemplator->writeString: print always returns 1 in PHP

master
Andrew Dolgov 2 years ago
parent
commit
61be0b215d
  1. 3
      lib/MiniTemplator.class.php

3
lib/MiniTemplator.class.php

@ -792,8 +792,7 @@ function writeString ($s) {
if ($this->outputError) return;
switch ($this->outputMode) {
case 0: // output to PHP output stream
if (!print($s))
$this->outputError = true;
print $s;
break;
case 1: // output to file
$rc = fwrite($this->outputFileHandle, $s);

Loading…
Cancel
Save