mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
ForeignNotifications: Fix fatal when one section has no timestamp
Bug: T133921 Change-Id: Iab82fa9439e26832731f4f56b5be18985203f49c
This commit is contained in:
parent
fbf702aa7e
commit
e864b1fc47
|
@ -88,7 +88,7 @@ class EchoForeignNotifications {
|
|||
foreach ( $this->timestamps as $timestamp ) {
|
||||
// $timestamp < $max = invert 0
|
||||
// $timestamp > $max = invert 1
|
||||
if ( $max === false || $timestamp->diff( $max )->invert === 1 ) {
|
||||
if ( $timestamp !== false && ( $max === false || $timestamp->diff( $max )->invert === 1 ) ) {
|
||||
$max = $timestamp;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue