mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Extra check on activity for #3974
This commit is contained in:
parent
fd629d6574
commit
58bb5eaeae
@ -200,7 +200,7 @@ class AccountUpdateService
|
|||||||
*/
|
*/
|
||||||
private function updatePreferences(Account $account, array $data): void
|
private function updatePreferences(Account $account, array $data): void
|
||||||
{
|
{
|
||||||
if (array_key_exists('active', $data) && false === $data['active']) {
|
if (array_key_exists('active', $data) && (false === $data['active'] || 0 === $data['active'])) {
|
||||||
$preference = app('preferences')->getForUser($account->user, 'frontpageAccounts');
|
$preference = app('preferences')->getForUser($account->user, 'frontpageAccounts');
|
||||||
if (null !== $preference) {
|
if (null !== $preference) {
|
||||||
$removeAccountId = (int)$account->id;
|
$removeAccountId = (int)$account->id;
|
||||||
|
Loading…
Reference in New Issue
Block a user