From 2c77ee60991494dd9a30e582e5f99104efb16042 Mon Sep 17 00:00:00 2001 From: kurund Date: Mon, 7 Apr 2014 17:43:27 -0700 Subject: [PATCH] notice fixes --- CRM/PCP/Page/PCPInfo.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/PCP/Page/PCPInfo.php b/CRM/PCP/Page/PCPInfo.php index f26571ec56..c41c626e61 100644 --- a/CRM/PCP/Page/PCPInfo.php +++ b/CRM/PCP/Page/PCPInfo.php @@ -194,7 +194,9 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page { $honor = CRM_PCP_BAO_PCP::honorRoll($this->_id); - if ($fileInfo = reset(CRM_Core_BAO_File::getEntityFile('civicrm_pcp', $this->_id))) { + $entityFile = CRM_Core_BAO_File::getEntityFile('civicrm_pcp', $this->_id); + if (!empty($entityFile)) { + $fileInfo = reset($entityFile); $fileId = $fileInfo['fileID']; $image = '_id}" -- 2.25.1