summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index be7c72234..2a14c2c26 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -2049,7 +2049,7 @@ function url($path = NULL, array $options = array()) {
// Allow other modules to alter the outbound URL and options.
drupal_alter('url_outbound', $path, $options, $original_path);
- if ($options['fragment']) {
+ if (isset($options['fragment']) && $options['fragment'] !== '') {
$options['fragment'] = '#' . $options['fragment'];
}