Browse Source

Put default value function set_file_option - ref #6917

Hubert Borderiou 11 years ago
parent
commit
22b54c4605
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/coursecopy/classes/CourseRestorer.class.php

+ 1 - 1
main/coursecopy/classes/CourseRestorer.class.php

@@ -108,7 +108,7 @@ class CourseRestorer
 	 * Set the file-option
 	 * @param constant $options What to do with files with same name (FILE_SKIP, FILE_RENAME or FILE_OVERWRITE)
 	 */
-    function set_file_option($option)
+    function set_file_option($option=FILE_OVERWRITE)
     {
 		$this->file_option = $option;
 	}