mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
PHRAS-1010 - fix maintenance message display
This commit is contained in:
@@ -34,7 +34,7 @@ class UserPreferenceController extends Controller
|
||||
$success = false;
|
||||
$msg = $this->app->trans('Error while saving preference');
|
||||
|
||||
if ($prop && $value) {
|
||||
if (!is_null($prop) && !is_null($value)) {
|
||||
$this->getSession()->set('phraseanet.' . $prop, $value);
|
||||
$success = true;
|
||||
$msg = $this->app->trans('Preference saved !');
|
||||
|
Reference in New Issue
Block a user