Fix category import see BT#10052

1.9.x
Julio Montoya 10 years ago
parent 49a0fa5d06
commit 300477801f
  1. 6
      main/exercice/testcategory.class.php

@ -500,8 +500,6 @@ class Testcategory
$categories[$data['category_id']][] = $data['question_id'];
}
if (!empty($categoriesAddedInExercise)) {
$newCategoryList = array();
foreach ($categoriesAddedInExercise as $category) {
@ -540,6 +538,10 @@ class Testcategory
/**
* return a tab of $in_number random elements of $in_tab
*
* @param $in_tab
* @param $in_number
* @return array
*/
public static function getNElementsFromArray($in_tab, $in_number)
{

Loading…
Cancel
Save