Index: trunk/extensions/EducationProgram/includes/EPRoleObject.php |
— | — | @@ -252,10 +252,10 @@ |
253 | 253 | $result = wfGetDB( DB_SLAVE )->select( |
254 | 254 | array( 'ep_courses', 'ep_users_per_course' ), |
255 | 255 | $courseTable->getPrefixedFields( is_null( $fields ) ? $courseTable->getFieldNames() : (array)$fields ), |
256 | | - array( |
| 256 | + array_merge( array( |
257 | 257 | 'upc_role' => $this->getRoleId(), |
258 | 258 | 'upc_user_id' => $this->getField( 'user_id' ), |
259 | | - ), |
| 259 | + ), EPCourses::singleton()->getPrefixedValues( $conditions ) ), |
260 | 260 | __METHOD__, |
261 | 261 | array(), |
262 | 262 | array( |