From e83b9b2d58aa7e4ea78887aad8e97c146047102a Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sun, 22 Apr 2007 04:23:57 +0000 Subject: [PATCH] Fix test result issue with incorrect name causing an error when 'Limit to 5 tests' was selected --- include/testData.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/testData.php b/include/testData.php index bb7b1bf..f654c88 100644 --- a/include/testData.php +++ b/include/testData.php @@ -380,7 +380,7 @@ class testData{ $link = mysql_real_escape_string($link); $iDisplayLimit = mysql_real_escape_string($iDisplayLimit); - $showAll = $aClean['showAll']; + $sShowAll = $aClean['sShowAll']; $sQuery = "SELECT * FROM testResults @@ -389,7 +389,7 @@ class testData{ queued = '?' ORDER BY testedDate DESC"; - if(!$showAll) + if(!$sShowAll) $sQuery.=" LIMIT 0,".$iDisplayLimit; $hResult = query_parameters($sQuery, $this->iVersionId, "false"); @@ -433,8 +433,8 @@ class testData{ html_tr_highlight_clickable($link.$oTest->iTestingId, $bgcolor, "", "color2", "underline"); echo ' [Show]',"\n"; + if(is_string($sShowAll)) + echo '&sShowAll='.$sShowAll.'">Show]',"\n"; else echo '">Show]',"\n"; } @@ -462,12 +462,12 @@ class testData{ echo '
'; echo ''; - if($rowsUsed >= $iDisplayLimit && !is_string($showAll)) - echo ''; + if($rowsUsed >= $iDisplayLimit && !is_string($sShowAll)) + echo ''; - if(is_string($showAll)) + if(is_string($sShowAll)) { - echo ''; + echo ''; } echo '
'; }