mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Possible solution for #1353
This commit is contained in:
@@ -139,10 +139,10 @@ class Preferences
|
|||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Log::debug(sprintf('Could not delete preference #%d', $preference->id));
|
Log::debug(sprintf('Could not delete preference #%d', $preference->id));
|
||||||
}
|
}
|
||||||
$preference = false;
|
$preference = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($preference) {
|
if (null !== $preference) {
|
||||||
Cache::forever($fullName, $preference);
|
Cache::forever($fullName, $preference);
|
||||||
|
|
||||||
return $preference;
|
return $preference;
|
||||||
|
Reference in New Issue
Block a user