X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=work_units.php;h=e4d198d5cd0b727c12a41eaec21ea5903f94af46;hb=HEAD;hp=84ef37e0d9202ebec2cb4a1eef83f03f144bdbe6;hpb=b0bb9205ed7aeeee700ab27ee4c76d196406e5fc;p=timetracker.git diff --git a/work_units.php b/work_units.php index 84ef37e0..e4d198d5 100644 --- a/work_units.php +++ b/work_units.php @@ -48,8 +48,8 @@ if ($request->isPost()) { $cl_1st_unit_threshold = $request->getParameter('1st_unit_threshold'); $cl_totals_only = $request->getParameter('totals_only'); } else { - $cl_minutes_in_unit = $user->getConfigInt('minutes_in_unit'); - $cl_1st_unit_threshold = $user->getConfigInt('1st_unit_threshold'); + $cl_minutes_in_unit = $user->getConfigInt('minutes_in_unit', 15); + $cl_1st_unit_threshold = $user->getConfigInt('1st_unit_threshold', 0); $cl_totals_only = $user->getConfigOption('unit_totals_only'); }