From 4e9f3f90ed26a0dc4bcacf106d6421bf725b5ae3 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 23 Sep 2006 17:39:20 +0000 Subject: --- system/libraries/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/libraries/Parser.php') 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); } -- cgit v1.2.3-24-g4f1b