mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-13 17:00:45 +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');
|
$sidebox = new etemplate_new('calendar.sidebox');
|
||||||
|
|
||||||
$content = $this->cal_prefs['saved_states'];
|
$cont = $this->cal_prefs['saved_states'];
|
||||||
$content['view'] = $this->view ? $this->view : 'week';
|
if (!is_array($cont)) $cont = array();
|
||||||
$content['date'] = $this->date ? $this->date : egw_time();
|
$cont['view'] = $this->view ? $this->view : 'week';
|
||||||
|
$cont['date'] = $this->date ? $this->date : egw_time();
|
||||||
|
|
||||||
$readonlys = array();
|
$readonlys = array();
|
||||||
$sel_options['status_filter'] = array(
|
$sel_options['status_filter'] = array(
|
||||||
@ -590,7 +591,7 @@ class calendar_ui
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sidebox?
|
// 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