From 7f19e13259b9b4afa3196efb1d8fe7ece73b2d3c Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sun, 12 May 2002 16:51:49 +0000 Subject: - minor cleanup --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index 73dfbb9a7..2f8994495 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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" : ""); } /** -- cgit v1.2.3