Browse Source

[svn r13143] Minor updates

Yannick Warnier 17 years ago
parent
commit
bc75deb73d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/newscorm/learnpath.class.php

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

@@ -3968,6 +3968,7 @@ class learnpath {
 		
 		$tmp_filename = $filename;
 									
+		$i=0;
 		while(file_exists($filepath . $tmp_filename . '.html'))
 			$tmp_filename = $filename . '_' . ++$i;
 									
@@ -3992,7 +3993,7 @@ class learnpath {
 											
 				if($document_id)
 				{
-					api_item_property_update($_course, TOOL_DOCUMENT, $document_id, 'DocumentAdded', $_user['user_id'], $to_group_id);
+					api_item_property_update($_course, TOOL_DOCUMENT, $document_id, 'DocumentAdded', api_get_user_id(), $to_group_id);
 									
 					//update parent folders
 					//item_property_update_on_folder($_course, $_GET['dir'], $_user['user_id']);