Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Mar 9, 2024
1 parent 42bd97f commit e3eaaff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion classes/form/transactions_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ public function definition() {
if ($mform->elementExists($key) && isset($types[$key])) {
if (is_array($value)) {
$array = clean_param_array($value, $types[$key]);
$time = make_timestamp($array['year'], $array['month'], $array['day'] ?? 1, $array['hour'] ?? 0, $array['minute'] ?? 0);
$time = make_timestamp($array['year'],
$array['month'],
$array['day'] ?? 1,
$array['hour'] ?? 0,
$array['minute'] ?? 0);
$mform->setDefault($key, $time);
} else {
$mform->setDefault($key, clean_param($value, $types[$key]));
Expand Down

0 comments on commit e3eaaff

Please sign in to comment.