Merge pull request #586 from blasto333/develop

Check for string value before doing str_replace. (Issue #439)
diff --git a/system/libraries/Session.php b/system/libraries/Session.php
index dd951c3..867314b 100644
--- a/system/libraries/Session.php
+++ b/system/libraries/Session.php
@@ -749,7 +749,10 @@
 	 */
 	function _unescape_slashes(&$val, $key)
 	{
-	 	$val= str_replace('{{slash}}', '\\', $val);
+		if (is_string($val))
+		{
+	 		$val= str_replace('{{slash}}', '\\', $val);
+		}
 	}
 
 	// --------------------------------------------------------------------