1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Minor changes for PHP8

This commit is contained in:
Jon Ziebell 2023-01-22 08:46:25 -05:00
parent 69a5ce89de
commit 06e8e5acdd

View File

@ -963,7 +963,7 @@ class profile extends cora\crud {
], ],
'metadata' => [ 'metadata' => [
'generated_at' => date('c'), 'generated_at' => date('c'),
'duration' => round((time() - strtotime($first_timestamp)) / 86400), 'duration' => $first_timestamp === null ? null : round((time() - strtotime($first_timestamp)) / 86400),
] ]
]; ];