minitemplator->writeString: print always returns 1 in PHP

master
Andrew Dolgov 4 years ago
parent 491090d21b
commit 61be0b215d

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

Loading…
Cancel
Save