mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix events for LDAP
This commit is contained in:
@@ -29,6 +29,7 @@ use FireflyIII\Models\Preference;
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Support\Collection;
|
||||
use Log;
|
||||
use PDOException;
|
||||
use Session;
|
||||
|
||||
/**
|
||||
@@ -297,7 +298,11 @@ class Preferences
|
||||
$pref->name = $name;
|
||||
}
|
||||
$pref->data = $value;
|
||||
$pref->save();
|
||||
try {
|
||||
$pref->save();
|
||||
} catch(PDOException $e) {
|
||||
throw new FireflyException(sprintf('Could not save preference: %s', $e->getMessage()), 0, $e);
|
||||
}
|
||||
Cache::forever($fullName, $pref);
|
||||
|
||||
return $pref;
|
||||
|
Reference in New Issue
Block a user