From 2a1b678d2cdfcd3caed8e60f2c591324b16b4072 Mon Sep 17 00:00:00 2001 From: jonsowman Date: Sun, 6 Jun 2010 10:25:09 +0100 Subject: [PATCH] Fixed model validity verification bug in getModelByUUID --- predict/ajax.php | 4 ++-- predict/js/pred.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/predict/ajax.php b/predict/ajax.php index ebbce2a..8db8c48 100644 --- a/predict/ajax.php +++ b/predict/ajax.php @@ -41,9 +41,9 @@ case "getModelByUUID": // populate the array, JSON encode it and return $pred_model = parse_ini_file($c_preds_path.$uuid."/".$c_scenario_file); if ( verifyModel($pred_model, $software_available) ){ - $pred_model['valid'] == true; + $pred_model['valid'] = true; } else { - $pred_model['valid'] == false; + $pred_model['valid'] = false; } $pred_model['uuid'] = $uuid; } diff --git a/predict/js/pred.js b/predict/js/pred.js index b0dde63..6df74a2 100644 --- a/predict/js/pred.js +++ b/predict/js/pred.js @@ -28,7 +28,6 @@ function populateFormByUUID(pred_uuid) { appendDebug("The server said the model it made was invalid"); } else { // we're good to go, populate the form - alert(data); } }, 'json'); }