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 dec774fc73
commit 91a7cbfc40

View file

@ -1322,7 +1322,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);