Skip to content

Commit

Permalink
Bug #13700: Don't clone contents if they don't exist
Browse files Browse the repository at this point in the history
This makes it look like the contents have always been set in the part,
even though that may not be true.
  • Loading branch information
slusarz committed Nov 18, 2014
1 parent af0d2fe commit 44e27f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/Mime/lib/Horde/Mime/Part.php
Expand Up @@ -294,7 +294,9 @@ public function __clone()
$this->_contentTypeParams->getArrayCopy()
);

$this->_contents = $this->_writeStream($this->_contents);
if (!empty($this->_contents)) {
$this->_contents = $this->_writeStream($this->_contents);
}
}

/**
Expand Down

0 comments on commit 44e27f5

Please sign in to comment.