From 00a3d0bdcf0667ef885f931b9d60a2cb151d54af Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 26 Jan 2016 08:55:55 +0100 Subject: [PATCH] MDL-49612 forum: Fix some external_value creation in params declaration --- mod/forum/externallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/forum/externallib.php b/mod/forum/externallib.php index b5e39c08670..0749fddc244 100644 --- a/mod/forum/externallib.php +++ b/mod/forum/externallib.php @@ -39,7 +39,7 @@ class mod_forum_external extends external_api { return new external_function_parameters ( array( 'courseids' => new external_multiple_structure(new external_value(PARAM_INT, 'course ID', - '', VALUE_REQUIRED, '', NULL_NOT_ALLOWED), 'Array of Course IDs', VALUE_DEFAULT, array()), + VALUE_REQUIRED, '', NULL_NOT_ALLOWED), 'Array of Course IDs', VALUE_DEFAULT, array()), ) ); } @@ -156,7 +156,7 @@ class mod_forum_external extends external_api { return new external_function_parameters ( array( 'forumids' => new external_multiple_structure(new external_value(PARAM_INT, 'forum ID', - '', VALUE_REQUIRED, '', NULL_NOT_ALLOWED), 'Array of Forum IDs', VALUE_REQUIRED), + VALUE_REQUIRED, '', NULL_NOT_ALLOWED), 'Array of Forum IDs', VALUE_REQUIRED), 'limitfrom' => new external_value(PARAM_INT, 'limit from', VALUE_DEFAULT, 0), 'limitnum' => new external_value(PARAM_INT, 'limit number', VALUE_DEFAULT, 0) )