- minor cleanup

4.0.x
Kjartan Mannes 2002-05-12 16:51:49 +00:00
parent 524cf07d12
commit 7f19e13259
1 changed files with 2 additions and 2 deletions

View File

@ -619,12 +619,12 @@ function form_submit($value) {
* @param $script script to be invoked; optional, defaults to node
* @param $anchor optional, anchor name
*/
function drupal_url($args = array(), $script = "node", $anchor = "") {
function drupal_url($args = array(), $script = "node", $anchor = 0) {
$t = array();
foreach ($args as $key => $value) {
$t[] = "$key=". urlencode($value);
}
return "$script.php?". implode("&", $t) . ($anchor != "" ? "#". $anchor : "");
return "$script.php?". implode("&", $t) . ($anchor ? "#$anchor" : "");
}
/**