mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
do not set a not set birthday preference to "none"
This commit is contained in:
parent
b58b9d06b9
commit
3937c9f2b6
@ -2759,6 +2759,7 @@ function calendar_upgrade17_1()
|
||||
{
|
||||
// Update birthdays as events preference from boolean
|
||||
$change = function($attr, $old_value, $owner) {
|
||||
if (!isset($old_value)) return null; // do not set anything, if nothing was set before
|
||||
return $old_value ? 'birthday' : 'none';
|
||||
};
|
||||
Api\Preferences::change_preference('calendar', 'birthdays_as_events', $change);
|
||||
|
Loading…
Reference in New Issue
Block a user