MDL-51999 user: remove unnecessary continue
authorMarina Glancy <marina@moodle.com>
Mon, 2 Nov 2015 02:53:43 +0000 (10:53 +0800)
committerMarina Glancy <marina@moodle.com>
Mon, 2 Nov 2015 02:53:43 +0000 (10:53 +0800)
grade/lib.php

index 1c88196..3a04829 100644 (file)
@@ -3142,9 +3142,6 @@ abstract class grade_helper {
                                                     JOIN {user_info_category} c ON f.categoryid=c.id
                                                     WHERE f.shortname $wherefields
                                                     ORDER BY c.sortorder ASC, f.sortorder ASC", $whereparams);
-            if (!is_array($customfields)) {
-                continue;
-            }
 
             foreach ($customfields as $field) {
                 // Make sure we can display this custom field