appchecker 10 years ago committed by Yannick Warnier
parent 68032a870f
commit cccd0d76d1
  1. 2
      main/newscorm/learnpath.class.php

@ -6266,7 +6266,7 @@ class learnpath
$_SESSION['parent_item_id'] = ($row['item_type'] == 'dokeos_chapter' || $row['item_type'] == 'dokeos_module' || $row['item_type'] == 'dir') ? $item_id : 0;
// Prevents wrong parent selection for document, see Bug#1251.
if ($row['item_type'] != 'dokeos_chapter' || $row['item_type'] != 'dokeos_module') {
if ($row['item_type'] != 'dokeos_chapter' && $row['item_type'] != 'dokeos_module') {
$_SESSION['parent_item_id'] = $row['parent_item_id'];
}

Loading…
Cancel
Save