mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-17855 fixed typo
This commit is contained in:
parent
73fa96d5d2
commit
4d55255bf9
@ -2272,7 +2272,7 @@ function xmldb_debug($message, $object) {
|
||||
function user_can_create_courses() {
|
||||
global $DB;
|
||||
$catsrs = $DB->get_recordset('course_categories');
|
||||
foreach ($cats as $cat) {
|
||||
foreach ($catsrs as $cat) {
|
||||
if (has_capability('moodle/course:create', get_context_instance(CONTEXT_COURSECAT, $cat->id))) {
|
||||
$catsrs->close();
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user