Index: trunk/extensions/Awesomeness/Awesomeness.php |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | /** |
45 | 45 | * Based on Svips patch at http://bug-attachment.wikimedia.org/attachment.cgi?id=7351 |
46 | 46 | */ |
47 | | -if ( array_key_exists( $_SERVER, 'QUERY_STRING' ) && strtolower( $_SERVER['QUERY_STRING'] ) == 'o_o' ) { |
| 47 | +if ( array_key_exists( 'QUERY_STRING', $_SERVER ) && strtolower( $_SERVER['QUERY_STRING'] ) == 'o_o' ) { |
48 | 48 | header( 'Content-Type: text/plain' ); |
49 | 49 | die( $_SERVER['QUERY_STRING'] == 'O_o' ? 'o_O' : 'O_o' ); |
50 | 50 | } |
\ No newline at end of file |