minitemplator->writeString: print always returns 1 in PHP

This commit is contained in:
Andrew Dolgov 2020-03-13 14:48:40 +03:00
parent 491090d21b
commit 61be0b215d
1 changed files with 1 additions and 2 deletions

View File

@ -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);