testData: Don't tamper with submitterId in display()

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-11-28 23:43:21 +01:00
parent 2bd552c9e0
commit 3997886df3

View File

@@ -1376,6 +1376,9 @@ class testData{
function display()
{
$this->ShowTestResult();
$iOldSubmitterId = $this->iSubmitterId;
if(!$this->iSubmitterId)
$this->iSubmitterId = $_SESSION['current']->iUserId;
$oTable = $this->CreateTestTable();
@@ -1383,6 +1386,8 @@ class testData{
$oTable->AddRow($this->CreateTestTableRow($this->iTestingId, ""));
echo $oTable->GetString();
$this->iSubmitterId = $iOldSubmitterId;
}