Commit 7f19e132 authored by Kjartan's avatar Kjartan

- minor cleanup

parent 524cf07d
......@@ -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" : "");
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment