array_fill() throws an error if count($var) is 0

Signed-off-by: Joshua Logsdon <logsdon.joshua@gmail.com>
diff --git a/system/core/Common.php b/system/core/Common.php
index ee5a705..935c687 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -743,6 +743,12 @@
 	{
 		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));
 		}