Fix compatibility with PHP 5.3
This commit is contained in:
parent
bac0a9070e
commit
71f24efbdd
1 changed files with 4 additions and 2 deletions
|
@ -1148,8 +1148,10 @@ class calendar extends rcube_plugin
|
|||
$this->rc->session->nowrite = true;
|
||||
|
||||
$start = rcube_utils::get_input_value('start', rcube_utils::INPUT_GET);
|
||||
if (!$start)
|
||||
$start = (new DateTime('today 00:00:00', $this->timezone))->format('U');
|
||||
if (!$start) {
|
||||
$start = new DateTime('today 00:00:00', $this->timezone);
|
||||
$start = $start->format('U');
|
||||
}
|
||||
|
||||
$counts = $this->driver->count_events(
|
||||
rcube_utils::get_input_value('source', rcube_utils::INPUT_GET),
|
||||
|
|
Loading…
Add table
Reference in a new issue