Fix PHP Fatal error: __clone method called on non-object (#5424)

When using Tomorrow filter in Tasks or in other circumstances.
This commit is contained in:
Aleksander Machniak 2016-05-10 14:49:38 +02:00
parent 3c0e93f6aa
commit 4e2bc9bdc6

View file

@ -1330,7 +1330,7 @@ class tasklist extends rcube_plugin
*/
public function filter_mask($rec)
{
static $today, $tomorrow, $weeklimit;
static $today, $today_date, $tomorrow, $tomorrow_date, $week_date, $weeklimit;
if (!$today) {
$today_date = new DateTime('now', $this->timezone);