PHRAS-1010 - fix maintenance message display

This commit is contained in:
Florian BLOUET
2016-02-26 11:45:30 +01:00
parent db47b7621d
commit fdc2129c22
3 changed files with 17 additions and 5 deletions

View File

@@ -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 !');