Fix issue with sessiontimestamp

This commit is contained in:
Alfonso Saavedra "Son Link" 2024-12-19 17:01:24 +01:00
parent 85dc41c868
commit 0c473367d5
No known key found for this signature in database
GPG key ID: D3594BCF897F74D8

View file

@ -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='';