summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald Beilsma <beilsma@gmail.com>2011-12-28 12:59:45 +0100
committerRonald Beilsma <beilsma@gmail.com>2011-12-28 12:59:45 +0100
commit64b013611f65006197fdf465186ca36adf12847d (patch)
tree5799977ccd3b07056bdba36b495878c3d5e4b318
parent345e7ee1c655c53b8022c3e725a4266e15bd2542 (diff)
fixed bug in typography library
array index starts at 0, not 1
-rw-r--r--system/libraries/Typography.php2
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.