Browse Source

[svn r19663] Minor - A module y a directory shouldn't upload an audio because they're not content - partial FS#3909

Cristian Fasanando 16 years ago
parent
commit
1d50230f86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/newscorm/learnpath.class.php

+ 1 - 1
main/newscorm/learnpath.class.php

@@ -4436,7 +4436,7 @@ class learnpath {
 					}
 					else 
 					{
-						if ($arrLP[$i]['item_type']!='dokeos_chapter') {
+						if ($arrLP[$i]['item_type']!='dokeos_chapter' && $arrLP[$i]['item_type'] != 'dokeos_module' && $arrLP[$i]['item_type'] != 'dir') {
 							$return .= ' <input type="file" name="mp3file'.$arrLP[$i]['id'].'" id="mp3file" />';
 							if (!empty($arrLP[$i]['audio']))
 							{