Do the same for week_days count as commit bb9bf40edb

This commit is contained in:
Hadi Nategh 2017-01-11 10:36:14 +01:00
parent aa63949012
commit 03fb09e199

View File

@ -334,6 +334,9 @@ class calendar_category_report extends calendar_ui{
$min_days_output[$user_id][$cat_id]['amount'] = $min_days_output[$user_id][$cat_id]['amount'] =
$min_days_output[$user_id][$cat_id]['amount'] + $min_days_output[$user_id][$cat_id]['amount'] +
(count($days) >= (int)$events['min_days']?self::add_days($days):0); (count($days) >= (int)$events['min_days']?self::add_days($days):0);
$min_days_output[$user_id][$cat_id]['days'] =
$min_days_output[$user_id][$cat_id]['days'] +
(count($days) >= (int)$events['min_days']?count($days):0);
} }
} }
} }