Skip to content

Commit

Permalink
Another place where explode() does not cast argument to string
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 13, 2014
1 parent 284ae04 commit cda05b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imp/lib/Compose.php
Expand Up @@ -478,7 +478,7 @@ protected function _resumeDraft($indices, $type, $opts)
$headers = $contents->getHeader();
$imp_draft = false;

if ($draft_url = $headers->getValue(self::DRAFT_REPLY)) {
if ($draft_url = $headers[self::DRAFT_REPLY]) {
if (is_null($type) &&
!($type = $headers[self::DRAFT_REPLY_TYPE])) {
$type = self::REPLY;
Expand Down Expand Up @@ -595,7 +595,7 @@ protected function _resumeDraft($indices, $type, $opts)
$imp_imap = $injector->getInstance('IMP_Factory_Imap')->create();
$indices = new IMP_Indices();

foreach (explode(',', $draft_url) as $val) {
foreach (explode(',', $draft_url->value_single) as $val) {
$imap_url = new Horde_Imap_Client_Url(rtrim(ltrim($val, '<'), '>'));

try {
Expand Down

0 comments on commit cda05b1

Please sign in to comment.