Skip to content

Commit

Permalink
MDL-41026 webservices: use correct param format in external apis
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac authored and ankitagarwal committed Jan 27, 2015
1 parent e0ae351 commit 09ca18a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notes/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public static function delete_notes($notes = array()) {
global $CFG;
require_once($CFG->dirroot . "/notes/lib.php");

$params = self::validate_parameters(self::delete_notes_parameters(), $notes);
$params = self::validate_parameters(self::delete_notes_parameters(), array('notes' => $notes));

// Check if note system is enabled.
if (!$CFG->enablenotes) {
Expand Down Expand Up @@ -295,7 +295,7 @@ public static function get_notes($notes) {
global $CFG;
require_once($CFG->dirroot . "/notes/lib.php");

$params = self::validate_parameters(self::get_notes_parameters(), $notes);
$params = self::validate_parameters(self::get_notes_parameters(), array('notes' => $notes));
// Check if note system is enabled.
if (!$CFG->enablenotes) {
throw new moodle_exception('notesdisabled', 'notes');
Expand Down

0 comments on commit 09ca18a

Please sign in to comment.