summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/core/Common.php')
-rw-r--r--system/core/Common.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index ee5a705b2..935c687ab 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -743,6 +743,12 @@ if ( ! function_exists('html_escape'))
{
if (is_array($var))
{
+ // If empty array, skip escaping
+ if ( empty($var) )
+ {
+ return $var;
+ }
+
return array_map('html_escape', $var, array_fill(0, count($var), $double_encode));
}