From 9cefe2f2b2c50c0daee11ccf8c5e3f7b27004de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Tue, 5 Dec 2017 21:59:04 +0100 Subject: [PATCH] MDL-57564 enrol: Fix typos and copy&paste mistake in the exception msg --- lib/enrollib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/enrollib.php b/lib/enrollib.php index d72133aea55..1a73b2df51e 100644 --- a/lib/enrollib.php +++ b/lib/enrollib.php @@ -590,7 +590,7 @@ function enrol_get_my_courses($fields = null, $sort = null, $limit = 0, $coursei } else if (is_array($fields)) { $fields = array_unique(array_merge($basefields, $fields)); } else { - throw new coding_exception('Invalid $fileds parameter in enrol_get_my_courses()'); + throw new coding_exception('Invalid $fields parameter in enrol_get_my_courses()'); } if (in_array('*', $fields)) { $fields = array('*'); @@ -926,7 +926,7 @@ function enrol_get_all_users_courses($userid, $onlyactive = false, $fields = nul } else if (is_array($fields)) { $fields = array_unique(array_merge($basefields, $fields)); } else { - throw new coding_exception('Invalid $fileds parameter in enrol_get_my_courses()'); + throw new coding_exception('Invalid $fields parameter in enrol_get_all_users_courses()'); } if (in_array('*', $fields)) { $fields = array('*');