diff --git a/includes/ForeignNotifications.php b/includes/ForeignNotifications.php index 5f6fb3a0e..2419bf9d2 100644 --- a/includes/ForeignNotifications.php +++ b/includes/ForeignNotifications.php @@ -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; } }