r112346 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112345‎ | r112346 | r112347 >
Date:20:05, 24 February 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fixed enrollment issue
Modified paths:
  • /trunk/extensions/EducationProgram/specials/SpecialEnroll.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/specials/SpecialEnroll.php
@@ -228,7 +228,7 @@
229229 */
230230 protected function doEnroll( EPCourse $course ) {
231231 $student = EPStudent::newFromUser( $this->getUser(), array( 'id' ) );
232 - $hadStudent = $student !== false;
 232+ $hadStudent = $student->hasIdField();
233233
234234 $fields = array(
235235 'active_enroll' => 1

Status & tagging log