mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Fix various code.
This commit is contained in:
@@ -52,7 +52,7 @@ class ReturnsSettings
|
||||
'ntfy_pass' => '',
|
||||
|
||||
];
|
||||
if ('user' === $type && null !== $user) {
|
||||
if ('user' === $type && $user instanceof User) {
|
||||
$settings['ntfy_server'] = Preferences::getEncryptedForUser($user, 'ntfy_server', 'https://ntfy.sh')->data;
|
||||
$settings['ntfy_topic'] = Preferences::getEncryptedForUser($user, 'ntfy_topic', '')->data;
|
||||
$settings['ntfy_auth'] = '1' === Preferences::getForUser($user, 'ntfy_auth', false)->data;
|
||||
|
Reference in New Issue
Block a user