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:
5b2904c
)
MDL-28348 prevent circular references in meta handler for enrolments
author
Petr Skoda
<commits@skodak.org>
Sun, 17 Jul 2011 18:36:12 +0000
(20:36 +0200)
committer
Petr Skoda
<commits@skodak.org>
Sun, 17 Jul 2011 18:36:12 +0000
(20:36 +0200)
enrol/meta/locallib.php
patch
|
blob
|
blame
|
history
diff --git
a/enrol/meta/locallib.php
b/enrol/meta/locallib.php
index
3b68e7f
..
0f94dae
100644
(file)
--- a/
enrol/meta/locallib.php
+++ b/
enrol/meta/locallib.php
@@
-128,6
+128,11
@@
class enrol_meta_handler {
return true;
}
+ if ($ue->enrol === 'meta') {
+ // prevent circular dependencies - we can not sync meta enrolments recursively
+ return true;
+ }
+
// does anything want to sync with this parent?
if (!$enrols = $DB->get_records('enrol', array('customint1'=>$ue->courseid, 'enrol'=>'meta'), 'id ASC')) {
return true;