diff options
author | Ronald Beilsma <beilsma@gmail.com> | 2011-12-28 12:59:45 +0100 |
---|---|---|
committer | Ronald Beilsma <beilsma@gmail.com> | 2011-12-28 12:59:45 +0100 |
commit | 64b013611f65006197fdf465186ca36adf12847d (patch) | |
tree | 5799977ccd3b07056bdba36b495878c3d5e4b318 /system/libraries | |
parent | 345e7ee1c655c53b8022c3e725a4266e15bd2542 (diff) |
fixed bug in typography library
array index starts at 0, not 1
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Typography.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php index 651ba7bff..ac9486a6b 100644 --- a/system/libraries/Typography.php +++ b/system/libraries/Typography.php @@ -144,7 +144,7 @@ class CI_Typography { $process = TRUE; $paragraph = FALSE; - for ($i = 1, $c = count($chunks); $i <= $c; $i++) + for ($i = 0, $c = count($chunks) - 1; $i <= $c; $i++) { // Are we dealing with a tag? If so, we'll skip the processing for this cycle. // Well also set the "process" flag which allows us to skip <pre> tags and a few other things. |