Fix PHP Fatal error: __clone method called on non-object when using Tomorrow filter in Tasks

This commit is contained in:
Aleksander Machniak 2016-05-10 14:49:38 +02:00
parent 3c0e93f6aa
commit 042f2889b9

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);