@@ -81,10 +81,10 @@ class ReportController extends BackendController | |||
// distributions | |||
$firstDistribution = Distribution::searchOne([], [ | |||
'orderby' => 'id ASC' | |||
'orderby' => 'date ASC' | |||
]) ; | |||
$lastDistribution = Distribution::searchOne([], [ | |||
'orderby' => 'id DESC' | |||
'orderby' => 'date DESC' | |||
]) ; | |||
$firstYear = date('Y',strtotime($firstDistribution->date)) ; |