Index: trunk/extensions/EducationProgram/specials/SpecialEnroll.php |
— | — | @@ -228,7 +228,7 @@ |
229 | 229 | */ |
230 | 230 | protected function doEnroll( EPCourse $course ) { |
231 | 231 | $student = EPStudent::newFromUser( $this->getUser(), array( 'id' ) ); |
232 | | - $hadStudent = $student !== false; |
| 232 | + $hadStudent = $student->hasIdField(); |
233 | 233 | |
234 | 234 | $fields = array( |
235 | 235 | 'active_enroll' => 1 |