Index: trunk/extensions/EducationProgram/includes/EPStudent.php |
— | — | @@ -169,9 +169,8 @@ |
170 | 170 | * @return array of EPCourse |
171 | 171 | */ |
172 | 172 | public function getCurrentCourses( $fields = null, array $conditions = array() ) { |
173 | | - return $this->getCourses( $fields, $conditions, array( |
174 | | - 'end >= ' . wfGetDB( DB_SLAVE )->addQuotes( wfTimestampNow() ) |
175 | | - ) ); |
| 173 | + $conditions['active'] = 1; |
| 174 | + return $this->getCourses( $fields, $conditions ); |
176 | 175 | } |
177 | 176 | |
178 | 177 | /** |
— | — | @@ -185,9 +184,8 @@ |
186 | 185 | * @return array of EPCourse |
187 | 186 | */ |
188 | 187 | public function getPassedCourses( $fields = null, array $conditions = array() ) { |
189 | | - return $this->getCourses( $fields, $conditions, array( |
190 | | - 'end < ' . wfGetDB( DB_SLAVE )->addQuotes( wfTimestampNow() ) |
191 | | - ) ); |
| 188 | + $conditions['active'] = 0; |
| 189 | + return $this->getCourses( $fields, $conditions ); |
192 | 190 | } |
193 | 191 | |
194 | 192 | /** |