Skip to content

Commit

Permalink
Fix: Numeric names on activities/resources broke timeline (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Hunt <[email protected]>
  • Loading branch information
Syxton and timhunt authored Dec 18, 2020
1 parent 4ecd0a5 commit c9d7bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion form.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ private function sort_timeline_data($data) {
'time' => $obj->t);
}
}
} else if (is_numeric($value) && $value > 0) {
} else if (is_numeric($value) && $value > 0 && $key !== "name") {
$sorted[] = array('type' => $mod["type"],
'name' => $mod["name"] . ": $key",
'icon' => $mod["icon"],
Expand Down

0 comments on commit c9d7bc7

Please sign in to comment.