Merge pull request #81 from danielrichman/master
Fix issue #80: negative ascent or descent rates cause bad things.pull/83/merge
commit
995d2ab99c
|
@ -81,6 +81,12 @@ function verifyModel( $pred_model, $software_available ) {
|
||||||
$return_array['msg'] = "The latitude or longitude deltas
|
$return_array['msg'] = "The latitude or longitude deltas
|
||||||
were outside the allowed range on this server";
|
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 ) ) {
|
} else if ( !is_numeric( $value ) ) {
|
||||||
$return_array['valid'] = false;
|
$return_array['valid'] = false;
|
||||||
$return_array['msg'] = "A value that should have been numeric
|
$return_array['msg'] = "A value that should have been numeric
|
||||||
|
|
Ładowanie…
Reference in New Issue