mirror of
https://github.com/beestat/app.git
synced 2026-05-22 15:12:29 -04:00
Minor changes for PHP8
This commit is contained in:
+1
-1
@@ -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),
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user