Fix get questions by category - refs #8079

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 488bf0aeb6
commit c165f721c1
  1. 2
      main/exercice/TestCategory.php

@ -457,7 +457,7 @@ class TestCategory
$res = Database::query($sql);
$list = array();
while ($data = Database::fetch_array($res)) {
if (!isset($tabres[$data['category_id']])) {
if (!isset($list[$data['category_id']])) {
$list[$data['category_id']] = array();
}
$list[$data['category_id']][] = $data['question_id'];

Loading…
Cancel
Save