From 8e80025cb875549eaadc204dbe0e5634123bc35c Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 6 Mar 2019 10:30:33 +1300 Subject: [PATCH] Add enotice handling for weird s....' --- CRM/Upgrade/Incremental/SmartGroups.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Upgrade/Incremental/SmartGroups.php b/CRM/Upgrade/Incremental/SmartGroups.php index 4e54d874ee..64c5ab9dc0 100644 --- a/CRM/Upgrade/Incremental/SmartGroups.php +++ b/CRM/Upgrade/Incremental/SmartGroups.php @@ -70,6 +70,10 @@ class CRM_Upgrade_Incremental_SmartGroups { } } foreach ($formValues as $index => $formValue) { + if (!isset($formValue[0])) { + // Any actual criteria will have this key set but skip any weird lines + continue; + } if (in_array($formValue[0], $fieldPossibilities)) { if ($isRelative) { unset($formValues[$index]); -- 2.25.1