diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-15 18:41:32 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-15 18:41:32 +0100 |
commit | 305f63b920acb8f58125f932f7462c1b71ba18c4 (patch) | |
tree | 67dc4dc950de3bb2165c78e945eb74786ae5682f /system | |
parent | 6e848ed2afa39b5c99fda7bc061c864bd619269f (diff) |
fixed a bug in parser where numeric data is ignored
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Parser.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Parser.php b/system/libraries/Parser.php index 4e1f9b9a3..33cb1214a 100644 --- a/system/libraries/Parser.php +++ b/system/libraries/Parser.php @@ -54,13 +54,13 @@ class CI_Parser { foreach ($data as $key => $val)
{
- if (is_string($val))
+ if (is_array($val))
{
- $template = $this->_parse_single($key, $val, $template);
+ $template = $this->_parse_pair($key, $val, $template);
}
- elseif (is_array($val))
+ else
{
- $template = $this->_parse_pair($key, $val, $template);
+ $template = $this->_parse_single($key, (string)$val, $template);
}
}
|