diff --git a/src/app/contact/controllers/ContactController.php b/src/app/contact/controllers/ContactController.php index cff58d21e9ff55148c4900590de4bb9ef95093bf..dda0efe8b3a5b38384bae0ccdda9244a9b9f1be5 100755 --- a/src/app/contact/controllers/ContactController.php +++ b/src/app/contact/controllers/ContactController.php @@ -732,7 +732,7 @@ class ContactController ], 'id' => $aArgs['contactId'] ]); - $customFields = json_decode($contactRaw['custom_fields'], true); + $customFields = json_decode($contactRaw['custom_fields'] ?? '{}', true); $percent = 0; foreach ($contactsParameters as $ratingColumn) {