From 76ea6d7f5e545732094d5baf94de8aceae32c12c Mon Sep 17 00:00:00 2001 From: endroid Date: Fri, 8 Apr 2016 21:44:39 +0000 Subject: [PATCH] Fix incorrect use of output buffer --- src/QrCode.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/QrCode.php b/src/QrCode.php index b408e6f..4b05ce0 100644 --- a/src/QrCode.php +++ b/src/QrCode.php @@ -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); } @@ -788,7 +787,6 @@ public function get($format = null) } $content = ob_get_clean(); - ob_end_flush(); return $content; }