diff --git a/include/util.php b/include/util.php index 7c70c19..8453065 100644 --- a/include/util.php +++ b/include/util.php @@ -37,15 +37,16 @@ function build_urlarg($vars) while(list($key, $val) = each($vars)) { if(is_array($val)) - { + { while(list($idx, $value) = each($val)) { //echo "Encoding $key / $value
"; $arr[] = rawurlencode($key."[]")."=".rawurlencode($value); } - } - else + } else + { $arr[] = $key."=".rawurlencode($val); + } } return implode("&", $arr); }