summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Parser.php8
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);
}
}