* Fix bug.

This commit is contained in:
leiyong
2021-04-01 09:57:12 +03:00
parent b24b6a2744
commit abd8af87a6
15 changed files with 31 additions and 15 deletions
+2 -1
View File
@@ -263,7 +263,8 @@ class testtask extends control
public function view($taskID)
{
/* Get test task, and set menu. */
$task = $this->testtask->getById($taskID, true);
$taskID = (int)$taskID;
$task = $this->testtask->getById($taskID, true);
if(!$task) die(js::error($this->lang->notFound) . js::locate('back'));
/* When the session changes, you need to query the related products again. */