Fixing regression from r35298: wasn't adding enough ampersands.

This commit is contained in:
Roan Kattouw 2008-06-03 10:58:45 +00:00
parent daf1821d32
commit 7c1e050219

View file

@ -1000,9 +1000,16 @@ function wfArrayToCGI( $array1, $array2 = NULL )
$cgi .= '&';
}
if(is_array($value))
{
$firstTime = true;
foreach($value as $v)
$cgi .= urlencode( $key . '[]' ) . '=' .
{
$cgi .= ($firstTime ? '' : '&') .
urlencode( $key . '[]' ) . '=' .
urlencode( $v );
$firstTime = false;
}
}
else
$cgi .= urlencode( $key ) . '=' .
urlencode( $value );