mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
possible fix for An error happened (ErrorException): Argument 2 passed to EGroupware\Api\Etemplate::exec() must be of the type array, string given, called in calendar/inc/class.calendar_ui.inc.php on line 593
This commit is contained in:
parent
58e7ed75dd
commit
db5533058d
@ -555,9 +555,10 @@ class calendar_ui
|
||||
}
|
||||
$sidebox = new etemplate_new('calendar.sidebox');
|
||||
|
||||
$content = $this->cal_prefs['saved_states'];
|
||||
$content['view'] = $this->view ? $this->view : 'week';
|
||||
$content['date'] = $this->date ? $this->date : egw_time();
|
||||
$cont = $this->cal_prefs['saved_states'];
|
||||
if (!is_array($cont)) $cont = array();
|
||||
$cont['view'] = $this->view ? $this->view : 'week';
|
||||
$cont['date'] = $this->date ? $this->date : egw_time();
|
||||
|
||||
$readonlys = array();
|
||||
$sel_options['status_filter'] = array(
|
||||
@ -590,7 +591,7 @@ class calendar_ui
|
||||
}
|
||||
|
||||
// Sidebox?
|
||||
$sidebox->exec('calendar.calendar_ui.sidebox_etemplate', $content, $sel_options, $readonlys);
|
||||
$sidebox->exec('calendar.calendar_ui.sidebox_etemplate', $cont, $sel_options, $readonlys);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user