Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -867,7 +867,8 @@ |
868 | 868 | |
869 | 869 | case self::AS_SUCCESS_NEW_ARTICLE: |
870 | 870 | $query = $resultDetails['redirect'] ? 'redirect=no' : ''; |
871 | | - $wgOut->redirect( $this->mTitle->getFullURL( $query ) . $resultDetails['sectionanchor'] ); |
| 871 | + $anchor = isset ( $resultDetails['sectionanchor'] ) ? $resultDetails['sectionanchor'] : ''; |
| 872 | + $wgOut->redirect( $this->mTitle->getFullURL( $query ) . $anchor ); |
872 | 873 | return false; |
873 | 874 | |
874 | 875 | case self::AS_SUCCESS_UPDATE: |