Commit ee18da9b authored by helmut's avatar helmut

Update laravel/file.php

Fixed bug that was causing the latest function to return the 'last' file rather than the actual 'latest' file.
parent 2e836499
......@@ -340,7 +340,11 @@ class File {
// with a UNIX timestamp greater than the latest one.
foreach ($items as $item)
{
if ($item->getMTime() > $time) $latest = $item;
if ($item->getMTime() > $time)
{
$latest = $item;
$time = $item->getMTime();
}
}
return $latest;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment