Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -185,11 +185,13 @@ |
186 | 186 | |
187 | 187 | function pr_parse_index($index_title, $page_title){ |
188 | 188 | |
| 189 | + $err = array( '', '', array() ); |
| 190 | + |
189 | 191 | $page_namespace = preg_quote( wfMsgForContent( 'proofreadpage_namespace' ), '/' ); |
190 | 192 | $index_namespace = preg_quote( wfMsgForContent( 'proofreadpage_index_namespace' ), '/' ); |
191 | 193 | |
192 | | - if( !$index_title ) return ; |
193 | | - if( !$index_title->exists() ) return; |
| 194 | + if( !$index_title ) return $err; |
| 195 | + if( !$index_title->exists() ) return $err; |
194 | 196 | |
195 | 197 | $rev = Revision::newFromTitle( $index_title ); |
196 | 198 | $text = $rev->getText(); |