mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Catch null pointer exception.
This commit is contained in:
parent
015064e5af
commit
b3b8981b4b
@ -118,9 +118,13 @@ class Preferences
|
||||
*/
|
||||
public function lastActivity(): string
|
||||
{
|
||||
$preference = $this->get('lastActivity', microtime())->data;
|
||||
$lastActivity = microtime();
|
||||
$preference = $this->get('lastActivity', microtime());
|
||||
if (!is_null($preference)) {
|
||||
$lastActivity = $preference->data;
|
||||
}
|
||||
|
||||
return md5($preference);
|
||||
return md5($lastActivity);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user