MDL-47780 core: corrected docs for get_user_capability_course()

This commit is contained in:
Mark Nelson 2014-10-20 19:43:47 -07:00
parent b49de5d930
commit 6c271ab5e6

View file

@ -4201,7 +4201,7 @@ function count_role_users($roleid, context $context, $parent = false) {
* otherwise use a comma-separated list of the fields you require, not including id * otherwise use a comma-separated list of the fields you require, not including id
* @param string $orderby If set, use a comma-separated list of fields from course * @param string $orderby If set, use a comma-separated list of fields from course
* table with sql modifiers (DESC) if needed * table with sql modifiers (DESC) if needed
* @return array Array of courses, may have zero entries. Or false if query failed. * @return array|bool Array of courses, if none found false is returned.
*/ */
function get_user_capability_course($capability, $userid = null, $doanything = true, $fieldsexceptid = '', $orderby = '') { function get_user_capability_course($capability, $userid = null, $doanything = true, $fieldsexceptid = '', $orderby = '') {
global $DB; global $DB;