mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Make sure the state is an array
- Fix not working update script from commit 54367
This commit is contained in:
parent
af42a71332
commit
cbfb44e551
@ -2671,7 +2671,7 @@ function calendar_upgrade14_3_900()
|
||||
function calendar_upgrade14_3_901()
|
||||
{
|
||||
preferences::change_preference('calendar', '/^favorite_/', function($attr, $old_value, $owner) {
|
||||
if($old_value['state'])
|
||||
if($old_value['state'] && is_array($old_value['state']))
|
||||
{
|
||||
unset($old_value['state']['date']);
|
||||
unset($old_value['state']['startdate']);
|
||||
|
Loading…
Reference in New Issue
Block a user