CRM-19028 - Change get(userID) to getLoggedInContactID()
[civicrm-core.git] / CRM / Activity / Form / Activity.php
index 9100fc80f22ff05a1d30489ee38b2ff2718ecfdb..5d2d1fd8a4de165d6161f91e6742f25f61c9ce21 100644 (file)
@@ -228,7 +228,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
     }
 
     $session = CRM_Core_Session::singleton();
-    $this->_currentUserId = $session->get('userID');
+    $this->_currentUserId = CRM_Core_Session::getLoggedInContactID();
 
     $this->_currentlyViewedContactId = $this->get('contactId');
     if (!$this->_currentlyViewedContactId) {