From 090005dd881645d18d042ed196288686b820451b Mon Sep 17 00:00:00 2001 From: jfederico Date: Tue, 28 Jun 2016 17:12:53 -0400 Subject: [PATCH] v2.1.0-b3: Considers all the imported recordings corresponding to a course if no bigbluebuttonbn->id is indicated --- locallib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/locallib.php b/locallib.php index fceeafb35..32d0d44d2 100644 --- a/locallib.php +++ b/locallib.php @@ -1564,20 +1564,20 @@ function bigbluebutton_output_recording_table($bbbsession, $recordings, $tools=[ return $output; } -function bigbluebuttonbn_getRecordingsImported($courseID, $bigbluebuttonbnID) { +function bigbluebuttonbn_getRecordingsImported($courseID, $bigbluebuttonbnID=NULL) { global $DB; if ( $bigbluebuttonbnID != NULL ) { // Fetch only those related to the $courseID and $bigbluebuttonbnID requested $recordings_imported = $DB->get_records('bigbluebuttonbn_logs', array('courseid' => $courseID, 'bigbluebuttonbnid' => $bigbluebuttonbnID, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_IMPORT)); } else { - // Fetch all the ones corresponding to the $courseID requested - $recordings_imported = $DB->get_records('bigbluebuttonbn_logs', array('courseid' => $courseID, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_IMPORT)); + // Fetch all the ones corresponding to the $courseID requested + $recordings_imported = $DB->get_records('bigbluebuttonbn_logs', array('courseid' => $courseID, 'log' => BIGBLUEBUTTONBN_LOG_EVENT_IMPORT)); } return $recordings_imported; } -function bigbluebuttonbn_getRecordingsImportedArray($courseID, $bigbluebuttonbnID) { +function bigbluebuttonbn_getRecordingsImportedArray($courseID, $bigbluebuttonbnID=NULL) { $recordings_imported = bigbluebuttonbn_getRecordingsImported($courseID, $bigbluebuttonbnID); $recordings_imported_array = bigbluebuttonbn_import_get_recordings_imported($recordings_imported); return $recordings_imported_array;