Fix issue with sessiontimestamp
This commit is contained in:
parent
85dc41c868
commit
0c473367d5
1 changed files with 2 additions and 2 deletions
|
@ -22,9 +22,9 @@
|
|||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if($user->sessiontimestamp>0)
|
||||
if((int) $user->sessiontimestamp > 0)
|
||||
{
|
||||
$date1 = new DateTime("");
|
||||
$date1 = new DateTime();
|
||||
$date2 = new DateTime($user->sessiontimestamp);
|
||||
$interval = $date1->diff($date2);
|
||||
$ago='';
|
||||
|
|
Loading…
Reference in a new issue