diff --git a/predict/includes/functions.inc.php b/predict/includes/functions.inc.php index 3fa948a..5e65bb7 100644 --- a/predict/includes/functions.inc.php +++ b/predict/includes/functions.inc.php @@ -9,13 +9,13 @@ function createModel($post_array) { $pred_model = array(); // first, populate the prediction model - $pred_model['hour'] = $post_array['hour']; //adjust for GMT - $pred_model['min'] = $post_array['min']; - $pred_model['sec'] = $post_array['sec']; + $pred_model['hour'] = (int)$post_array['hour']; //adjust for GMT + $pred_model['min'] = (int)$post_array['min']; + $pred_model['sec'] = (int)$post_array['sec']; - $pred_model['month'] = $post_array['month']; - $pred_model['day'] = $post_array['day']; - $pred_model['year'] = $post_array['year']; + $pred_model['month'] = (int)$post_array['month']; + $pred_model['day'] = (int)$post_array['day']; + $pred_model['year'] = (int)$post_array['year']; $pred_model['lat'] = $post_array['lat']; $pred_model['lon'] = $post_array['lon']; diff --git a/predict/index.php b/predict/index.php index 29b5408..95f2992 100644 --- a/predict/index.php +++ b/predict/index.php @@ -136,9 +136,6 @@ function initialize() {