From f3e5959f01ea5d513b0930c23a1d9db85ff4d5fb Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Thu, 2 Feb 2017 09:28:33 -0500 Subject: [PATCH] CRM-19947 adjust url condition --- CRM/Profile/Form.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index e513affbaa..d6abda6e3d 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -500,7 +500,11 @@ class CRM_Profile_Form extends CRM_Core_Form { ) { $entityId = $this->_activityId; } - $url = CRM_Core_BAO_CustomField::getFileURL($entityId, $key, $value); + + $url = ''; + if (isset($value)) { + $url = CRM_Core_BAO_CustomField::getFileURL($entityId, $key, $value); + } if ($url) { $customFiles[$name]['displayURL'] = ts("Attached File") . ": {$url['file_url']}"; -- 2.25.1