From 9cc707b8a5c726b7f2aa21b026dbf491a75e06c4 Mon Sep 17 00:00:00 2001 From: Ted Wood Date: Tue, 8 Jan 2013 19:41:45 -0800 Subject: fix imagejpeg() parameter, should be NULL instead of empty string --- system/libraries/Image_lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index 54a134f50..6d5493696 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -1491,7 +1491,7 @@ class CI_Image_lib { { case 1 : imagegif($resource); break; - case 2 : imagejpeg($resource, '', $this->quality); + case 2 : imagejpeg($resource, NULL, $this->quality); break; case 3 : imagepng($resource); break; -- cgit v1.2.3-24-g4f1b