mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Fix forced preferences stored nulls
This commit is contained in:
parent
98b9de516d
commit
e5b3aea258
@ -78,7 +78,7 @@ class admin_cmd_edit_preferences extends admin_cmd
|
|||||||
$prefs->read_repository();
|
$prefs->read_repository();
|
||||||
foreach($this->set as $name => $value)
|
foreach($this->set as $name => $value)
|
||||||
{
|
{
|
||||||
if (!isset($value) || $value === '')
|
if (!isset($value) || $value === '' || in_array($this->pref, array('default', 'forced')) && $value === '**NULL**')
|
||||||
{
|
{
|
||||||
$prefs->delete($this->app, $name, in_array($this->pref, array('default', 'forced')) ? $this->pref : 'user');
|
$prefs->delete($this->app, $name, in_array($this->pref, array('default', 'forced')) ? $this->pref : 'user');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user