1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 16:46:50 +02:00

#4665 correct user last visit information

CLOSES #4665
This commit is contained in:
Jimmi08
2022-04-02 14:57:37 +02:00
parent 9e8e7966a5
commit 2fa73df934
2 changed files with 4 additions and 2 deletions

View File

@@ -182,13 +182,13 @@ class user_shortcodes extends e_shortcode
function sc_user_lastvisit($parm='')
{
return $this->var['user_currentvisit'] ? e107::getDate()->convert_date($this->var['user_currentvisit'], "long") : "<i>".LAN_USER_33."</i>";
return $this->var['user_currentvisit'] ? e107::getDate()->convert_date($this->var['user_currentvisit'], "long") : e107::getDate()->convert_date($this->var['user_lastvisit'], "long");
}
function sc_user_lastvisit_lapse($parm='')
{
return $this->var['user_currentvisit'] ? e107::getDate()->computeLapse($this->var['user_currentvisit']) : '';
return $this->var['user_currentvisit'] ? e107::getDate()->computeLapse($this->var['user_currentvisit']) : e107::getDate()->computeLapse($this->var['user_lastvisit']);
}