From 1366362abf6f6037e3fbf85e450bfc52eccd5085 Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Fri, 28 May 2021 17:15:46 -0400 Subject: [PATCH] Ensure fieldsTo array are defined --- CRM/Core/DAO.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CRM/Core/DAO.php b/CRM/Core/DAO.php index a2206b39cd..dbc886dbcf 100644 --- a/CRM/Core/DAO.php +++ b/CRM/Core/DAO.php @@ -1778,11 +1778,9 @@ LIKE %1 $newObject = new $daoName(); $fields = $object->fields(); - if (!is_array($fieldsFix)) { - $fieldsToPrefix = []; - $fieldsToSuffix = []; - $fieldsToReplace = []; - } + $fieldsToPrefix = []; + $fieldsToSuffix = []; + $fieldsToReplace = []; if (!empty($fieldsFix['prefix'])) { $fieldsToPrefix = $fieldsFix['prefix']; } -- 2.25.1