]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17855 fixed typo
authorskodak <skodak>
Sun, 11 Jan 2009 17:16:50 +0000 (17:16 +0000)
committerskodak <skodak>
Sun, 11 Jan 2009 17:16:50 +0000 (17:16 +0000)
lib/datalib.php

index 161ad0ab798d03afc62fa1143f15f4ffeaa5df1c..cd9562a9a742cc22acb5d19fff624061dddc76d6 100644 (file)
@@ -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;