From: Stephane Bisson Date: Tue, 2 May 2017 20:09:27 +0000 (-0400) Subject: RC Filters: watch filter highlight X-Git-Tag: 1.31.0-rc.0~3366^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=9c0b86c952754fd02c67ac398f02cef9d90b8e92;p=lhc%2Fweb%2Fwiklou.git RC Filters: watch filter highlight When checking if lines are 'watchednew' for highlight purposes, make sure 'rc_timestamp' and 'wl_notificationtimestamp' are truthy. Bug: T163964 Change-Id: I3cd6cc9835db01229b8d1cc6ccfc371a36709ef2 --- diff --git a/includes/specialpage/ChangesListSpecialPage.php b/includes/specialpage/ChangesListSpecialPage.php index 9074d30145..93cc18fa42 100644 --- a/includes/specialpage/ChangesListSpecialPage.php +++ b/includes/specialpage/ChangesListSpecialPage.php @@ -415,7 +415,9 @@ abstract class ChangesListSpecialPage extends SpecialPage { 'cssClassSuffix' => 'watchednew', 'isRowApplicableCallable' => function ( $ctx, $rc ) { return $rc->getAttribute( 'wl_user' ) && - $rc->getAttribute( 'rc_timestamp' ) > $rc->getAttribute( 'wl_notificationtimestamp' ); + $rc->getAttribute( 'rc_timestamp' ) && + $rc->getAttribute( 'wl_notificationtimestamp' ) && + $rc->getAttribute( 'rc_timestamp' ) >= $rc->getAttribute( 'wl_notificationtimestamp' ); }, ], [