* fix bug for loophole.

This commit is contained in:
王怡栋
2021-10-25 08:42:13 +08:00
parent 96bf22be3a
commit 43ac494106
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -1307,7 +1307,7 @@ class testcase extends control
{
$cases = array();
$orderBy = " ORDER BY " . str_replace(array('|', '^A', '_'), ' ', $orderBy);
$stmt = $this->dbh->query($this->session->testcaseQueryCondition . $orderBy . ($this->post->limit ? ' LIMIT ' . $this->post->limit : ''));
$stmt = $this->dao->query($this->session->testcaseQueryCondition . $orderBy . ($this->post->limit ? ' LIMIT ' . $this->post->limit : ''));
while($row = $stmt->fetch())
{
$caseID = isset($row->case) ? $row->case : $row->id;