From 16de356a74c4b635cfe0f09dc5162e440979a862 Mon Sep 17 00:00:00 2001
From: Daniel Voelskow <daniel.voelskow@interface-projects.de>
Date: Wed, 3 Jun 2020 10:04:09 +0200
Subject: [PATCH] #1296 Fix php72 warning on Util.php

---
 modules/Vtiger/helpers/Util.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Vtiger/helpers/Util.php b/modules/Vtiger/helpers/Util.php
index f8a6f217b..8cda7ad00 100644
--- a/modules/Vtiger/helpers/Util.php
+++ b/modules/Vtiger/helpers/Util.php
@@ -1268,7 +1268,7 @@ class Vtiger_Util_Helper {
            if(!empty($editablePicklistValues) && !isset($editablePicklistValues[$fieldValue])){
                 $fieldValue = null;
             }
-        }elseif(count($fieldValue) > 0 && $fieldDataType == 'multipicklist'){
+        }elseif((is_array($fieldValue) && count($fieldValue) > 0) && $fieldDataType == 'multipicklist'){
             if(!empty($editablePicklistValues)){
                 foreach($fieldValue as $key => $value){
                     if(!isset($editablePicklistValues[$fieldValue])){
-- 
GitLab