Skip to content

Commit

Permalink
Fix incorrect use of output buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Apr 8, 2016
1 parent 5a1b0ad commit 76ea6d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/QrCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ public function getDataUri()
ob_start();
call_user_func('image'.$this->image_type, $this->image);
$contents = ob_get_clean();
ob_end_flush();

return 'data:image/'.$this->image_type.';base64,'.base64_encode($contents);
}
Expand Down Expand Up @@ -788,7 +787,6 @@ public function get($format = null)
}

$content = ob_get_clean();
ob_end_flush();

return $content;
}
Expand Down

0 comments on commit 76ea6d7

Please sign in to comment.