summaryrefslogtreecommitdiffstats
path: root/system/libraries/Parser.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-23 19:39:20 +0200
committeradmin <devnull@localhost>2006-09-23 19:39:20 +0200
commit4e9f3f90ed26a0dc4bcacf106d6421bf725b5ae3 (patch)
tree52bccfbded6c08606faca9e725af9f42ea3fabad /system/libraries/Parser.php
parent212a3fa070a02c812b84ca937c5cb411400e6f3d (diff)
Diffstat (limited to 'system/libraries/Parser.php')
-rw-r--r--system/libraries/Parser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Parser.php b/system/libraries/Parser.php
index 17a985fd7..63dc023a2 100644
--- a/system/libraries/Parser.php
+++ b/system/libraries/Parser.php
@@ -54,11 +54,11 @@ class CI_Parser {
foreach ($data as $key => $val)
{
- if ( ! is_array($val))
+ if (is_string($val))
{
$template = $this->_parse_single($key, $val, $template);
}
- else
+ elseif (is_array($val))
{
$template = $this->_parse_pair($key, $val, $template);
}