From 7ba54539b3d9a0b5fd2b782eb4c1a7cc660551c2 Mon Sep 17 00:00:00 2001
From: prasad <prasad@vtiger.com>
Date: Wed, 11 May 2016 16:14:48 +0530
Subject: [PATCH] Added php7 combat for split function.

---
 include/utils/utils.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/utils/utils.php b/include/utils/utils.php
index 48fe09986..ba9b534e9 100755
--- a/include/utils/utils.php
+++ b/include/utils/utils.php
@@ -2307,4 +2307,12 @@ function lower_array(&$string){
 if (!function_exists('split')) {
 	function split($delim, $str) { return explode($delim, $str); }
 }
+if (!function_exists('spliti')) {
+	function spliti($delim, $str) {
+		// TODO - Review backward compatibilty on use-cases.
+		$str = str_replace($delim, strtolower($delim), $str);
+		return explode(strtolower($delim), $str);
+	}
+}
+
 ?>
-- 
GitLab