Skip to content

Commit

Permalink
Better default argument
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 20, 2015
1 parent 8d86b6f commit 626f696
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imp/lib/Mime/Viewer/Images.php
Expand Up @@ -222,16 +222,18 @@ protected function _renderRaw()

/**
*/
protected function _renderImgData($base64 = null)
protected function _renderImgData($base64 = false)
{
$data = $this->_mimepart->getContents(array('stream' => true));

if ($base64) {
stream_filter_append(
$data,
'convert.base64-encode',
STREAM_FILTER_READ
);
}

return array(
$this->_mimepart->getMimeId() => array(
'data' => $data,
Expand Down

0 comments on commit 626f696

Please sign in to comment.