diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-12 09:47:56 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-12 09:47:56 -0400 |
commit | e2090087230f6f08866149d8531517e39e0d1f44 (patch) | |
tree | 424755de6f2eb8008e42d012dfd0322fa5611f7f /pts-core/functions/pts-functions-merge.php | |
parent | 5be88ccd0f575587b63d736ff1ed6809cd763116 (diff) | |
download | phoronix-test-suite-upstream-e2090087230f6f08866149d8531517e39e0d1f44.tar.gz phoronix-test-suite-upstream-e2090087230f6f08866149d8531517e39e0d1f44.tar.xz phoronix-test-suite-upstream-e2090087230f6f08866149d8531517e39e0d1f44.zip |
pts-core: Fix similar attributes text in analyze option
Diffstat (limited to 'pts-core/functions/pts-functions-merge.php')
-rw-r--r-- | pts-core/functions/pts-functions-merge.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions-merge.php b/pts-core/functions/pts-functions-merge.php index 6481964..a723c35 100644 --- a/pts-core/functions/pts-functions-merge.php +++ b/pts-core/functions/pts-functions-merge.php @@ -385,7 +385,12 @@ function pts_merge_batch_tests_to_line_comparison($RESULT) $r_o_test_attributes_1 = explode(":", $test_attribute); if(count($r_o_test_attributes_1) > 1) - $similar_attributes_text = trim($r_o_test_attributes_1[0]) . " Analysis [" . $similar_attributes_text . "]"; + { + $similar_attributes_text = trim($r_o_test_attributes_1[0]) . " Analysis"; + + if(!empty($similar_attributes_text)) + $similar_attributes_text .= " [" . $similar_attributes_text . "]"; + } $USE_ID = pts_request_new_id(); $RESULTS->addXmlObject(P_RESULTS_TEST_TITLE, $USE_ID, $results_name[$r_o]); |