# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/enrol/database/enrol.php
--- moodle/enrol/database/enrol.php Base (1.53)
+++ moodle/enrol/database/enrol.php Locally Modified (Based On 1.53)
@@ -83,7 +83,7 @@
 
                 //$count = 0;
                 $courselist = array();
-                while ($fields_obj = (object)$rs->FetchRow()) {         // Make a nice little array of courses to process
+                foreach($rs as $fields_obj) {
                     $fields_obj = (object)array_change_key_case((array)$fields_obj , CASE_LOWER);
                     $courselist[] = $fields_obj->enrolremotecoursefield;
                     //$count++;
