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,13 +1376,18 @@ class testData{
function display() function display()
{ {
$this->ShowTestResult(); $this->ShowTestResult();
$this->iSubmitterId = $_SESSION['current']->iUserId; $iOldSubmitterId = $this->iSubmitterId;
if(!$this->iSubmitterId)
$this->iSubmitterId = $_SESSION['current']->iUserId;
$oTable = $this->CreateTestTable(); $oTable = $this->CreateTestTable();
$oTable->AddRow($this->CreateTestTableRow($this->iTestingId, "")); $oTable->AddRow($this->CreateTestTableRow($this->iTestingId, ""));
echo $oTable->GetString(); echo $oTable->GetString();
$this->iSubmitterId = $iOldSubmitterId;
} }