diff options
author | phkoehn <phkoehn@1f5c12ca-751b-0410-a591-d2e778427230> | 2010-10-21 13:49:27 +0400 |
---|---|---|
committer | phkoehn <phkoehn@1f5c12ca-751b-0410-a591-d2e778427230> | 2010-10-21 13:49:27 +0400 |
commit | 85a5a13e4c722fccc28394d06da1ea0194bf7ab6 (patch) | |
tree | 97876a77307d0a21bbf0be6ea913c1a9f067a225 /scripts/ems/web/diff.php | |
parent | 88eaf49c5e051f7c1202d01aa2136c811c17e401 (diff) |
improvements to web analysis, fixes to syntax wrappers
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3633 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'scripts/ems/web/diff.php')
-rw-r--r-- | scripts/ems/web/diff.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/ems/web/diff.php b/scripts/ems/web/diff.php index 17d61a069..74f0f6572 100644 --- a/scripts/ems/web/diff.php +++ b/scripts/ems/web/diff.php @@ -2,7 +2,7 @@ function diff() { global $experiment; - $display = $_GET[run]; + $display = $_GET["run"]; sort($display); while (list($i,$run) = each($display)) { if ($i==0) { @@ -22,12 +22,15 @@ function compute_diff($base,$change) { $parameter_change = load_parameter($change); print "<H3>Experiment $change</H3><TABLE>"; while (list($parameter,$base_value) = each($parameter_base)) { + if (!array_key_exists($parameter,$parameter_change)) { + $parameter_change[$parameter] = ""; + } if ($base_value != $parameter_change[$parameter]) { output_diff_line($parameter,$base_value,$parameter_change[$parameter]); } } while (list($parameter,$change_value) = each($parameter_change)) { - if (!$parameter_base[$parameter]) { + if (!array_key_exists($parameter,$parameter_base)) { output_diff_line($parameter,"",$change_value); } } |