Index: trunk/extensions/Contest/Contest.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | die( 'Not an entry point.' ); |
26 | 26 | } |
27 | 27 | |
28 | | -if ( version_compare( $wgVersion, '1.18c', '<' ) ) { // Needs to be 1.18c because version_compare() works in confusing ways |
| 28 | +if ( isset( $wgVersion ) && version_compare( $wgVersion, '1.18c', '<' ) ) { // Needs to be 1.18c because version_compare() works in confusing ways |
29 | 29 | die( '<b>Error:</b> Contest requires MediaWiki 1.18 or above.' ); |
30 | 30 | } |
31 | 31 | |