Merge pull request #12952 from MrPetovan/bug/fatal-errors
Address a few fatal errors
This commit is contained in:
commit
c77266de98
8 changed files with 51 additions and 25 deletions
|
@ -109,6 +109,8 @@ interface IHandleUserSessions extends IHandleSessions
|
|||
|
||||
/**
|
||||
* Set the session variable that contains the contact IDs for the visitor's contact URL
|
||||
*
|
||||
* @param string $my_url
|
||||
*/
|
||||
public function setVisitorsContacts();
|
||||
public function setVisitorsContacts(string $my_url);
|
||||
}
|
||||
|
|
|
@ -140,9 +140,9 @@ class UserSession implements IHandleUserSessions
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public function setVisitorsContacts()
|
||||
public function setVisitorsContacts(string $my_url)
|
||||
{
|
||||
$this->session->set('remote', Contact::getVisitorByUrl($this->session->get('my_url')));
|
||||
$this->session->set('remote', Contact::getVisitorByUrl($my_url));
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue