diff options
author | Timothy Warren <tim@timshomepage.net> | 2012-01-24 22:37:20 +0100 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2012-01-24 22:37:20 +0100 |
commit | 8f9e93dd37ae0090c9b4117138cd3135bfe3f67a (patch) | |
tree | 3f49040d696e760381642f2d2ffa407cee1dc039 /system/libraries/Typography.php | |
parent | de15a0b7377db0ef3b1d43508401be3c2927c0ff (diff) | |
parent | 96db8f91c34c18119548cacc4692362f51e70407 (diff) |
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into develop
Diffstat (limited to 'system/libraries/Typography.php')
-rw-r--r-- | system/libraries/Typography.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php index 651ba7bff..46c73ef8b 100644 --- a/system/libraries/Typography.php +++ b/system/libraries/Typography.php @@ -18,7 +18,7 @@ * * @package CodeIgniter * @author EllisLab Dev Team - * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/) + * @copyright Copyright (c) 2008 - 2012, EllisLab, Inc. (http://ellislab.com/) * @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * @link http://codeigniter.com * @since Version 1.0 @@ -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. |