Skip to content

Commit 1891681

Browse files
committed
Bug fix for spamming error log in case of memory issue.
* When web server has memory issue, it is getting 'false' which should not pass to fwrite function. Adding another condition to prevent it.
1 parent c30c7fc commit 1891681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Font_Binary_Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function read($n) {
145145
}
146146

147147
public function write($data, $length = null) {
148-
if ($data === null || $data === "") {
148+
if ($data === null || $data === "" || $data === false) {
149149
return 0;
150150
}
151151

0 commit comments

Comments
 (0)