do not set a not set birthday preference to "none"

This commit is contained in:
Ralf Becker 2018-04-12 14:33:09 +02:00
parent b58b9d06b9
commit 3937c9f2b6

View File

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