Index: trunk/extensions/EducationProgram/includes/EPCourse.php |
— | — | @@ -284,6 +284,7 @@ |
285 | 285 | */ |
286 | 286 | protected function saveExisting() { |
287 | 287 | if ( $this->updateSummaries ) { |
| 288 | + $currentCourse = false; |
288 | 289 | $currentFields = array( 'id' ); |
289 | 290 | |
290 | 291 | foreach ( array( 'org_id', 'online_ambs', 'campus_ambs' ) as $field ) { |
Index: trunk/extensions/EducationProgram/EducationProgram.hooks.php |
— | — | @@ -197,7 +197,11 @@ |
198 | 198 | // Remove the token from the title if needed. |
199 | 199 | if ( !$sktemplate->getRequest()->getCheck( 'wptoken' ) ) { |
200 | 200 | $textParts[1] = explode( '/', $textParts[1] ); |
201 | | - array_pop( $textParts[1] ); |
| 201 | + |
| 202 | + if ( count( $textParts[1] ) > 1 ) { |
| 203 | + array_pop( $textParts[1] ); |
| 204 | + } |
| 205 | + |
202 | 206 | $textParts[1] = implode( '/', $textParts[1] ); |
203 | 207 | } |
204 | 208 | |