Merge pull request #81 from danielrichman/master

Fix issue #80: negative ascent or descent rates cause bad things.
pull/83/merge
Jon Sowman 2011-09-02 04:14:17 -07:00
commit 995d2ab99c
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -81,6 +81,12 @@ function verifyModel( $pred_model, $software_available ) {
$return_array['msg'] = "The latitude or longitude deltas
were outside the allowed range on this server";
}
} else if ( $idx == "asc" || $idx == "des" ) {
if ( $value <= 0 ) {
$return_array['valid'] = false;
$return_array['msg'] = "The ascent and descent rates cannot
be zero or negative";
}
} else if ( !is_numeric( $value ) ) {
$return_array['valid'] = false;
$return_array['msg'] = "A value that should have been numeric