Fix undefined index warning
authorColeman Watts <coleman@civicrm.org>
Thu, 10 Jan 2019 17:05:23 +0000 (12:05 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 10 Jan 2019 17:05:23 +0000 (12:05 -0500)
CRM/Activity/Form/Activity.php

index 0b0a1b564b99f5ebf1271a635ae4e7123457251a..08c19283886b3a209809251eb0114882c30c0e88 100644 (file)
@@ -542,7 +542,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
 
     if ($this->_action & CRM_Core_Action::VIEW) {
       $url = CRM_Utils_System::url(implode("/", $this->urlPath), "reset=1&id={$this->_activityId}&action=view&cid={$this->_values['source_contact_id']}");
-      CRM_Utils_Recent::add($this->_values['subject'],
+      CRM_Utils_Recent::add(CRM_Utils_Array::value('subject', $this->_values, ts('(no subject)')),
         $url,
         $this->_values['id'],
         'Activity',