projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a52c51
)
CRM-19947 adjust url condition
author
Brian Shaughnessy
<brian@lcdservices.biz>
Thu, 2 Feb 2017 14:28:33 +0000
(09:28 -0500)
committer
Brian Shaughnessy
<brian@lcdservices.biz>
Thu, 2 Feb 2017 14:28:33 +0000
(09:28 -0500)
CRM/Profile/Form.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Profile/Form.php
b/CRM/Profile/Form.php
index e513affbaa72be97cf2a1d10aee3167f3f6bdedd..d6abda6e3d595cc9ddb84d4b9ea8ac271eda396b 100644
(file)
--- 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']}";