ChangeSet ID: 31084 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/04/21 23:23:57 Modified files: include : testData.php Log message: Chris Morgan <cmorgan(a)alum.wpi.edu> Fix test result issue with incorrect name causing an error when 'Limit to 5 tests' was selected Patch: http://cvs.winehq.org/patch.py?id=31084 Old revision New revision Changes Path 1.43 1.44 +8 -8 appdb/include/testData.php Index: appdb/include/testData.php diff -u -p appdb/include/testData.php:1.43 appdb/include/testData.php:1.44 --- appdb/include/testData.php:1.43 22 Apr 2007 4:23:57 -0000 +++ appdb/include/testData.php 22 Apr 2007 4:23:57 -0000 @@ -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 ' <td align="center" class="color2">[<a href="'.$link.$oTest->iTestingId; - if(is_string($showAll)) - echo '&showAll='.$showAll.'">Show</a>]</td>',"\n"; + if(is_string($sShowAll)) + echo '&sShowAll='.$sShowAll.'">Show</a>]</td>',"\n"; else echo '">Show</a>]</td>',"\n"; } @@ -462,12 +462,12 @@ class testData{ echo '<form method=get action="'.$PHP_SELF.'">'; echo '<input name="iVersionId" type=hidden value="',$this->iVersionId,'" />'; - if($rowsUsed >= $iDisplayLimit && !is_string($showAll)) - echo '<input class="button" name="showAll" type=submit value="Show All Tests" />'; + if($rowsUsed >= $iDisplayLimit && !is_string($sShowAll)) + echo '<input class="button" name="sShowAll" type=submit value="Show All Tests" />'; - if(is_string($showAll)) + if(is_string($sShowAll)) { - echo '<input class="button" name="hideAll" type=submit value="Limit to '.$iDisplayLimit.' Tests" />'; + echo '<input class="button" name="sHideAll" type=submit value="Limit to '.$iDisplayLimit.' Tests" />'; } echo '</form>'; }
participants (1)
-
WineHQ