diff options
author | Andrey Andreev <narf@bofh.bg> | 2011-12-30 13:24:59 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2011-12-30 13:24:59 +0100 |
commit | 1d97f291fa1988794b0e6ac2b90a0b1f8c83df25 (patch) | |
tree | 4ac17b361cd9f083d33ce824deaf65b83b5ab297 | |
parent | a948f07bde83e149d9fc75e9aaf7260efba39b55 (diff) |
Another fix on a previous commit from this request
-rw-r--r-- | system/libraries/Image_lib.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index 72621c9b4..609cb7f98 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -171,7 +171,8 @@ class CI_Image_lib { { if ($val != '' AND preg_match('/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i', $val, $matches)) { - $val = (strlen($matches[1]) === 6) ? '#'.$val : '#'.$val[0].$val[0].$val[1].$val[1].$val[2].$val[2]; + $val = (strlen($matches[1]) === 6) ? + '#'.$matches[1] : '#'.$matches[1][0].$matches[1][0].$matches[1][1].$matches[1][1].$matches[1][2].$matches[1][2]; } else { |