[[Special:Contributions]] with no target causes PHP errors.
[lhc/web/wiklou.git] / includes / SpecialContributions.php
index c5ad25a..0d2f423 100644 (file)
@@ -378,6 +378,10 @@ function contributionsForm( $options ) {
        global $wgScript, $wgTitle;
 
        $options['title'] = $wgTitle->getPrefixedText();
+       if (!isset($options['target']))
+               $options['target'] = '';
+       if (!isset($options['namespace']))
+               $options['namespace'] = 0;
 
        $f = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) );