diff options
Diffstat (limited to 'plugins/ScheduledReports/SubscriptionModel.php')
-rw-r--r-- | plugins/ScheduledReports/SubscriptionModel.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ScheduledReports/SubscriptionModel.php b/plugins/ScheduledReports/SubscriptionModel.php index e15f3b6d26..f5937138d5 100644 --- a/plugins/ScheduledReports/SubscriptionModel.php +++ b/plugins/ScheduledReports/SubscriptionModel.php @@ -157,7 +157,7 @@ class SubscriptionModel private function removeSubscription($token) { - $this->getDb()->query('UPDATE ' . $this->table . ' SET token = "", ts_unsubscribed = NOW() WHERE token = ?', [$token]); + $this->getDb()->query('UPDATE ' . $this->table . ' SET token = NULL, ts_unsubscribed = NOW() WHERE token = ?', [$token]); } private function generateToken($email) |