Call DB::timestampOrNull in WatchedItem::resetNotificationTimestamp
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 22 Nov 2015 10:06:58 +0000 (11:06 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 22 Nov 2015 10:06:58 +0000 (11:06 +0100)
This increase cross DBMS support

Bug: T86490
Change-Id: Ia1108c321dbc93295b18039420e49960ad6215d6

includes/WatchedItem.php

index adee126..0ef2373 100644 (file)
@@ -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__
                        );