mirror of
https://github.com/beestat/app.git
synced 2026-01-06 20:20:48 -05:00
Minor changes for PHP8
This commit is contained in:
parent
69a5ce89de
commit
06e8e5acdd
@ -963,7 +963,7 @@ class profile extends cora\crud {
|
||||
],
|
||||
'metadata' => [
|
||||
'generated_at' => date('c'),
|
||||
'duration' => round((time() - strtotime($first_timestamp)) / 86400),
|
||||
'duration' => $first_timestamp === null ? null : round((time() - strtotime($first_timestamp)) / 86400),
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user