From db3ef7f986ab667ce9f7919a080eedfaad5dcb47 Mon Sep 17 00:00:00 2001 From: prasad <prasad@vtiger.com> Date: Fri, 6 May 2016 21:48:57 +0530 Subject: [PATCH] PHP 7 - split function defined. --- include/utils/utils.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/utils/utils.php b/include/utils/utils.php index d16865076..48fe09986 100755 --- a/include/utils/utils.php +++ b/include/utils/utils.php @@ -2302,4 +2302,9 @@ function getCompanyDetails() { function lower_array(&$string){ $string = strtolower(trim($string)); } + +/* PHP 7 support */ +if (!function_exists('split')) { + function split($delim, $str) { return explode($delim, $str); } +} ?> -- GitLab