From 305f63b920acb8f58125f932f7462c1b71ba18c4 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 15 Jan 2008 17:41:32 +0000 Subject: fixed a bug in parser where numeric data is ignored --- system/libraries/Parser.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'system/libraries') 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); } } -- cgit v1.2.3-24-g4f1b