test

parent df4e0bfe
...@@ -121,7 +121,7 @@ class TestController extends \common\components\BaseController ...@@ -121,7 +121,7 @@ class TestController extends \common\components\BaseController
QuestionPassing::deleteAll(['passing_id' => $passing->id]); QuestionPassing::deleteAll(['passing_id' => $passing->id]);
$s = true; $s = true;
for ($i = 1; $i <= $test->questions; $i++) for ($i = 0; $i <= $test->questions - 1; $i++)
{ {
$pq = new QuestionPassing; $pq = new QuestionPassing;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment