diff --git a/fMailbox.php b/fMailbox.php index 7ccf4e42..e6daacf1 100644 --- a/fMailbox.php +++ b/fMailbox.php @@ -1406,7 +1406,7 @@ private function read($expect=NULL) } if ($select) { - while (!feof($this->connection)) { + do { $line = fgets($this->connection); if ($line === FALSE) { break; @@ -1433,7 +1433,7 @@ private function read($expect=NULL) break; } } - } + } while (!feof($this->connection)); } if (fCore::getDebug($this->debug)) { fCore::debug("Received:\n" . join("\r\n", $response), $this->debug);