diff options
author | Andrew Dolgov <[email protected]> | 2020-03-13 14:48:40 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-03-13 14:48:40 +0300 |
commit | 61be0b215db850395ef2746a5b7499f39db30662 (patch) | |
tree | cafb92e0305613dcdfc5b2bb300d951e946514ab | |
parent | 491090d21b838c1c9a04acf516dbc5c913d1a3fb (diff) |
minitemplator->writeString: print always returns 1 in PHP
-rw-r--r-- | lib/MiniTemplator.class.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/MiniTemplator.class.php b/lib/MiniTemplator.class.php index 6be345834..728cdf260 100644 --- a/lib/MiniTemplator.class.php +++ b/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); |