summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-12 16:51:49 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-12 16:51:49 +0000
commit7f19e13259b9b4afa3196efb1d8fe7ece73b2d3c (patch)
treefab4583bac49f3ceba24984b7dd087126199673e /includes
parent524cf07d124bdd18e14bedc7585bf17b70c1f15c (diff)
downloadbrdo-7f19e13259b9b4afa3196efb1d8fe7ece73b2d3c.tar.gz
brdo-7f19e13259b9b4afa3196efb1d8fe7ece73b2d3c.tar.bz2
- minor cleanup
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc4
1 files 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("&amp;", $t) . ($anchor != "" ? "#". $anchor : "");
+ return "$script.php?". implode("&amp;", $t) . ($anchor ? "#$anchor" : "");
}
/**