summaryrefslogtreecommitdiffstats
path: root/system/libraries/Image_lib.php
diff options
context:
space:
mode:
authorRonald Beilsma <beilsma@gmail.com>2012-01-12 16:41:49 +0100
committerRonald Beilsma <beilsma@gmail.com>2012-01-12 16:41:49 +0100
commit8f80bc4f855f78efbcb6344ea29cf67647b6772b (patch)
tree4b1635fab04c7a7ff73526a942303aa4e7e18ca8 /system/libraries/Image_lib.php
parent92fcffa6c76a2010ee7a2162554b304ba7cf0549 (diff)
array keys should be 0, 1, and 2. key 3 results in error (invalid offset)
Diffstat (limited to 'system/libraries/Image_lib.php')
-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 dc7d362ce..a226ae8f8 100644
--- a/system/libraries/Image_lib.php
+++ b/system/libraries/Image_lib.php
@@ -1091,7 +1091,7 @@ class CI_Image_lib {
$txt_color = str_split(substr($this->wm_font_color, 1, 6), 2);
$txt_color = imagecolorclosest($src_img, hexdec($txt_color[0]), hexdec($txt_color[1]), hexdec($txt_color[2]));
$drp_color = str_split(substr($this->wm_shadow_color, 1, 6), 2);
- $drp_color = imagecolorclosest($src_img, hexdec($drp_color[0]), hexdec($drp_color[2]), hexdec($drp_color[3]));
+ $drp_color = imagecolorclosest($src_img, hexdec($drp_color[0]), hexdec($drp_color[1]), hexdec($drp_color[2]));
// Add the text to the source image
if ($this->wm_use_truetype)