Check if date time is before correctly
This commit is contained in:
parent
7db7c0914e
commit
164d1c580d
@ -51,7 +51,7 @@
|
||||
foreach ($this->reporters as $reason)
|
||||
{
|
||||
// TODO: confirm this does indeed get the oldest report
|
||||
if ($oldestReason == null || $reason->getTime()->diff($oldestReason->getTime()) < 0)
|
||||
if ($oldestReason == null || !$reason->getTime()->diff($oldestReason->getTime())->invert)
|
||||
{
|
||||
$oldestReason = $reason;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user