diff options
-rw-r--r-- | includes/controller/user_worklog_controller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/controller/user_worklog_controller.php b/includes/controller/user_worklog_controller.php index bf0eb1cf..7cedea92 100644 --- a/includes/controller/user_worklog_controller.php +++ b/includes/controller/user_worklog_controller.php @@ -82,7 +82,7 @@ function user_worklog_from_request($userWorkLog) } $userWorkLog['work_hours'] = $request->input('work_hours'); - if (!preg_match("/[0-9]+(\.[0-9]+)?/", $userWorkLog['work_hours'])) { + if (!preg_match("/^[0-9]+(\.[0-9]+)?$/", $userWorkLog['work_hours'])) { $valid = false; error(__('Please enter work hours in format ##[.##].')); } |