testData: Don't tamper with submitterId in display()
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user