From: umherirrender Date: Sun, 22 Nov 2015 10:06:58 +0000 (+0100) Subject: Call DB::timestampOrNull in WatchedItem::resetNotificationTimestamp X-Git-Tag: 1.31.0-rc.0~8913 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=2950de51e3c37a6edebb48169765473f41652c1d;p=lhc%2Fweb%2Fwiklou.git Call DB::timestampOrNull in WatchedItem::resetNotificationTimestamp This increase cross DBMS support Bug: T86490 Change-Id: Ia1108c321dbc93295b18039420e49960ad6215d6 --- 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__ );