Permalink
Browse files

MDL-33581 missing parameter defaults for some external functions

Conflicts:

	course/externallib.php
  • Loading branch information...
1 parent fbbb4cc commit 1850ab013cd0b79ae435f9753517a8b90768d461 @mouneyrac mouneyrac committed Jun 8, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 course/externallib.php
  2. +1 −1 enrol/externallib.php
View
@@ -56,7 +56,7 @@ public static function get_course_contents_parameters() {
* @param array $options, not used yet, might be used in later version
* @return array
*/
- 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");
@@ -258,7 +258,7 @@ public static function get_courses_parameters() {
* @param array $options
* @return array
*/
- public static function get_courses($options) {
+ public static function get_courses($options = array()) {
global $CFG, $DB;
require_once($CFG->dirroot . "/course/lib.php");
View
@@ -143,7 +143,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 1850ab0

Please sign in to comment.