Permalink
Browse files

MDL-33581 missing parameter defaults for some external functions

  • Loading branch information...
1 parent 4db0616 commit 3297d5752817def3ca447507b2d362064fba5fce @mouneyrac mouneyrac committed Jun 8, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 course/externallib.php
  2. +1 −1 enrol/externallib.php
View
@@ -66,7 +66,7 @@ public static function get_course_contents_parameters() {
* @return array
* @since Moodle 2.2
*/
- public static function get_course_contents($courseid, $options) {
+ public static function get_course_contents($courseid, $options = array()) {
global $CFG, $DB;
require_once($CFG->dirroot . "/course/lib.php");
@@ -274,7 +274,7 @@ public static function get_courses_parameters() {
* @return array
* @since Moodle 2.2
*/
- public static function get_courses($options) {
+ public static function get_courses($options = array()) {
global $CFG, $DB;
require_once($CFG->dirroot . "/course/lib.php");
@@ -698,7 +698,7 @@ public static function duplicate_course_parameters() {
* @return array New course info
* @since Moodle 2.3
*/
- public static function duplicate_course($courseid, $fullname, $shortname, $categoryid, $visible, $options) {
+ public static function duplicate_course($courseid, $fullname, $shortname, $categoryid, $visible = 1, $options = array()) {
global $CFG, $USER, $DB;
require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');
View
@@ -152,7 +152,7 @@ public static function get_enrolled_users_parameters() {
* }
* @return array An array of users
*/
- public static function get_enrolled_users($courseid, $options) {
+ public static function get_enrolled_users($courseid, $options = array()) {
global $CFG, $USER, $DB;
require_once($CFG->dirroot . "/user/lib.php");

0 comments on commit 3297d57

Please sign in to comment.