Skip to content

Commit

Permalink
Merge 4495b9a into 129e457
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsommer committed Jun 19, 2015
2 parents 129e457 + 4495b9a commit 6147872
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Fetch/Message.php
Expand Up @@ -289,6 +289,9 @@ public function getOverview($forceReload = false)
if ($forceReload || !isset($this->messageOverview)) {
// returns an array, and since we just want one message we can grab the only result
$results = imap_fetch_overview($this->imapStream, $this->uid, FT_UID);
if ( sizeof($results) == 0 ) {
throw new \RuntimeException('Error fetching overview');
}
$this->messageOverview = array_shift($results);
if ( ! isset($this->messageOverview->date)) {
$this->messageOverview->date = null;
Expand Down

0 comments on commit 6147872

Please sign in to comment.