From 2950de51e3c37a6edebb48169765473f41652c1d Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 22 Nov 2015 11:06:58 +0100 Subject: [PATCH] Call DB::timestampOrNull in WatchedItem::resetNotificationTimestamp This increase cross DBMS support Bug: T86490 Change-Id: Ia1108c321dbc93295b18039420e49960ad6215d6 --- includes/WatchedItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php index adee1264a3..0ef2373783 100644 --- a/includes/WatchedItem.php +++ b/includes/WatchedItem.php @@ -290,7 +290,7 @@ class WatchedItem { } else { $dbw = wfGetDB( DB_MASTER ); $dbw->update( 'watchlist', - array( 'wl_notificationtimestamp' => $notificationTimestamp ), + array( 'wl_notificationtimestamp' => $dbw->timestampOrNull( $notificationTimestamp ) ), $this->dbCond(), __METHOD__ ); -- 2.20.1