fixed a bug in parser where numeric data is ignored
diff --git a/system/libraries/Parser.php b/system/libraries/Parser.php
index 4e1f9b9..33cb121 100644
--- a/system/libraries/Parser.php
+++ b/system/libraries/Parser.php
@@ -54,14 +54,14 @@
foreach ($data as $key => $val)
{
- if (is_string($val))
- {
- $template = $this->_parse_single($key, $val, $template);
- }
- elseif (is_array($val))
+ if (is_array($val))
{
$template = $this->_parse_pair($key, $val, $template);
}
+ else
+ {
+ $template = $this->_parse_single($key, (string)$val, $template);
+ }
}
if ($return == FALSE)