diff options
author | Aleksander Machniak <alec@alec.pl> | 2021-11-29 11:59:44 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2021-11-29 11:59:44 +0300 |
commit | 688320b4c6750c5260719d044d0812945bd7fbeb (patch) | |
tree | 7b7c5065489c8062c0778c2e3ef464d3110e91ac | |
parent | a722751dfc906f160e3c4e305e2f732d516e1387 (diff) |
readBytes() never returns null
-rw-r--r-- | program/lib/Roundcube/rcube_imap_generic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index 7312a6898..4f2cdacc5 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -246,7 +246,7 @@ class rcube_imap_generic while (strlen($out) < $bytes) { $out = $this->readBytes($bytes); - if ($out === null) { + if ($out === '') { break; } @@ -278,7 +278,7 @@ class rcube_imap_generic while (strlen($out) < $bytes) { $line = $this->readBytes($bytes); - if ($line === null) { + if ($line === '') { break; } |