Fix category import see BT#10052

1.9.x
Julio Montoya 10 years ago
parent 49a0fa5d06
commit 300477801f
  1. 12
      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) {
@ -538,9 +536,13 @@ class Testcategory
return $categories;
}
/**
* return a tab of $in_number random elements of $in_tab
*/
/**
* 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)
{
$tabres = $in_tab;

Loading…
Cancel
Save