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:
Nathan Gray 2012-07-04 15:29:52 +00:00
parent 20346395d7
commit 14f736c20b

View File

@ -240,6 +240,15 @@
if ($value === '')
{
// 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')
{