Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -15,7 +15,13 @@ |
16 | 16 | parent::__construct( $repo ); |
17 | 17 | global $wgRequest; |
18 | 18 | |
19 | | - $this->mPath = array_map( array( $this, 'preparePaths' ), explode( '|', $wgRequest->getVal( 'path' ) ) ); |
| 19 | + $path = $wgRequest->getVal( 'path' ); |
| 20 | + |
| 21 | + if ( $path != '' ) { |
| 22 | + $this->mPath = array_map( array( $this, 'preparePaths' ), explode( '|', $path ) ); |
| 23 | + } else { |
| 24 | + $this->mPath = array(); |
| 25 | + } |
20 | 26 | |
21 | 27 | $this->mAuthor = $wgRequest->getText( 'author' ); |
22 | 28 | $this->mAppliedFilter = null; |