mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 12:59:47 +01:00
Forced file preference left empty now means user choice - was forced to '', which was really hard to give users choice again
This commit is contained in:
parent
20346395d7
commit
14f736c20b
@ -240,6 +240,15 @@
|
|||||||
if ($value === '')
|
if ($value === '')
|
||||||
{
|
{
|
||||||
// empty is always allowed
|
// empty is always allowed
|
||||||
|
|
||||||
|
// If forced, empty == not set
|
||||||
|
if($type == 'forced')
|
||||||
|
{
|
||||||
|
unset($prefs[$var]);
|
||||||
|
// need to call preferences::delete, to also set affective prefs!
|
||||||
|
if (!$only_verify) $GLOBALS['egw']->preferences->delete($appname, $var, $type);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
elseif ($vfs_type == 'vfs_file')
|
elseif ($vfs_type == 'vfs_file')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user