Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a01ae6
)
MDL-21782 fixed wrong removal of hidden courses - thanks Jay Knight for the report!
author
Petr Skoda
<skodak@moodle.org>
Tue, 27 Jul 2010 19:04:59 +0000
(19:04 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Tue, 27 Jul 2010 19:04:59 +0000
(19:04 +0000)
lib/enrollib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/enrollib.php
b/lib/enrollib.php
index
88cbac6
..
62c8710
100644
(file)
--- a/
lib/enrollib.php
+++ b/
lib/enrollib.php
@@
-502,11
+502,11
@@
function enrol_get_my_courses($fields = NULL, $sort = 'visible DESC,sortorder AS
context_instance_preload($course);
if (!$course->visible) {
if (!$context = get_context_instance(CONTEXT_COURSE, $id)) {
- unset($course[$id]);
+ unset($course
s
[$id]);
continue;
}
if (!has_capability('moodle/course:viewhiddencourses', $context)) {
- unset($course[$id]);
+ unset($course
s
[$id]);
continue;
}
}