Browse Source

Feature #539 - main/inc/lib/add_course.lib.inc.php: A correction to the previous transaction.

Ivan Tcholakov 14 years ago
parent
commit
5124ac632c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/inc/lib/add_course.lib.inc.php

+ 2 - 2
main/inc/lib/add_course.lib.inc.php

@@ -1868,7 +1868,7 @@ function sort_pictures($files, $type) {
 function fill_course_repository($course_repository, $fill_with_exemplary_content = null) {
 
     if (is_null($fill_with_exemplary_content)) {
-        $fill_with_exemplary_content = api_get_setting('example_material_course_creation');
+        $fill_with_exemplary_content = api_get_setting('example_material_course_creation') != 'false';
     }
 
     $sys_course_path = api_get_path(SYS_COURSE_PATH);
@@ -2053,7 +2053,7 @@ function lang2db($string) {
 function fill_Db_course($course_db_name, $course_repository, $language, $default_document_array = array(), $fill_with_exemplary_content = null) {
 
     if (is_null($fill_with_exemplary_content)) {
-        $fill_with_exemplary_content = api_get_setting('example_material_course_creation');
+        $fill_with_exemplary_content = api_get_setting('example_material_course_creation') != 'false';
     }
 
     global $_configuration, $_user;