projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c63a534
)
Enrol script ignores users created with the course generator. Fixes #112
author
Frederic Massart
<fred@moodle.com>
Wed, 28 Jan 2015 04:21:24 +0000
(12:21 +0800)
committer
Frederic Massart
<fred@moodle.com>
Wed, 28 Jan 2015 04:21:24 +0000
(12:21 +0800)
mdk/scripts/enrol.php
patch
|
blob
|
history
diff --git
a/mdk/scripts/enrol.php
b/mdk/scripts/enrol.php
index
6b60998
..
2803fe3
100644
(file)
--- a/
mdk/scripts/enrol.php
+++ b/
mdk/scripts/enrol.php
@@
-52,7
+52,8
@@
$sql = "SELECT id, username
WHERE (username LIKE 's%'
OR username LIKE 't%'
OR username LIKE 'm%')
- AND deleted = 0";
+ AND deleted = 0
+ AND username NOT LIKE 'tool_generator_%'";
$users = $DB->get_recordset_sql($sql, array());
$courses = $DB->get_records_select('course', 'id > ?', array(1), '', 'id, startdate');
$plugin = new enrol_manual_plugin();