diff --git a/main/admin/course_list.php b/main/admin/course_list.php index 08226d8ece..c5086ac675 100755 --- a/main/admin/course_list.php +++ b/main/admin/course_list.php @@ -209,7 +209,7 @@ function get_course_data($from, $number_of_items, $column, $direction) $path.'admin/course_list.php?delete_course='.$courseCode, [ 'onclick' => "javascript: if (!confirm('" - .addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES))."')) return false;" + .addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES))."')) return false;", ] ); diff --git a/main/document/downloadfolder.inc.php b/main/document/downloadfolder.inc.php index 9acb9c6978..8d1585495a 100755 --- a/main/document/downloadfolder.inc.php +++ b/main/document/downloadfolder.inc.php @@ -175,8 +175,6 @@ if (api_is_allowed_to_edit()) { } } } - //error_log($sysCoursePath.$courseInfo['path'].'/document'.$not_deleted_file['path']); - //error_log($sysCoursePath.$courseInfo['path'].'/document'.$remove_dir); $zip->add( $sysCoursePath.$courseInfo['path'].'/document'.$not_deleted_file['path'], PCLZIP_OPT_REMOVE_PATH, @@ -189,7 +187,6 @@ if (api_is_allowed_to_edit()) { Session::erase('doc_files_to_download'); } else { // For other users, we need to create a zip file with only visible files and folders - if ($path == '/') { $querypath = ''; // To prevent ...path LIKE '//%'... in query } else { diff --git a/main/exercise/exercise.class.php b/main/exercise/exercise.class.php index aa39ac0625..cddab48f69 100755 --- a/main/exercise/exercise.class.php +++ b/main/exercise/exercise.class.php @@ -6550,6 +6550,7 @@ class Exercise if ($isRandomByCategory == 1) { shuffle($questionList); // or not } + return $questionList; } diff --git a/main/lp/lp_edit.php b/main/lp/lp_edit.php index d45713b3d2..de2621f616 100755 --- a/main/lp/lp_edit.php +++ b/main/lp/lp_edit.php @@ -158,7 +158,6 @@ $form->addElement('html', '