summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-01-10 09:05:24 +0100
committerAndrey Andreev <narf@bofh.bg>2013-01-10 09:05:24 +0100
commit2f8b35bd5b230cb9202f2fa66147da415ddcf30d (patch)
treedffbe5654d767a3ff325cc1924d7c091d02f6939
parent85adeed0ab67bcde7b5c57ddb44022c75e82078a (diff)
parent9cc707b8a5c726b7f2aa21b026dbf491a75e06c4 (diff)
Merge pull request #2133 from TheDigitalOrchard/image_lib-imagejpeg
fix imagejpeg() parameter, should be NULL instead of empty string
-rw-r--r--system/libraries/Image_lib.php2
1 files changed, 1 insertions, 1 deletions
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;