diff --git a/grade/lib.php b/grade/lib.php
index <HASH>..<HASH> 100644
--- a/grade/lib.php
+++ b/grade/lib.php
@@ -308,8 +308,6 @@ function print_graded_users_selector($course, $actionpage, $userid=0, $groupid=0
         $label = get_string('selectalloroneuser', 'grades');
     }
 
-    $nextuser = $gui->next_user();
-
     while ($userdata = $gui->next_user()) {
         $user = $userdata->user;
         $menu[$user->id] = fullname($user);
gradebook MDL-<I> now shows first user in gradebook user report user select box