Skip to content

Commit

Permalink
Update waterfall.inc: Add check for min < max
Browse files Browse the repository at this point in the history
  • Loading branch information
jspurlin authored Jun 4, 2024
1 parent 86190d4 commit 92b99d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/waterfall.inc
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function _GetMapOrImage($rows, $url, $page_events, $options, $is_image_map, $pag
// Figure out the scale.
$min_ms = 0;
$max_ms = 0;
if (@$_REQUEST['min'] > 0) {
if (@$_REQUEST['min'] > 0 && @$_REQUEST['min'] < @$_REQUEST['max']) {
$min_ms = (int)($_REQUEST['min'] * 1000.0);
}
if (@$_REQUEST['max'] > 0) {
Expand Down

0 comments on commit 92b99d3

Please sign in to comment.