diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-30 20:59:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-30 20:59:26 +0000 |
commit | 6baa7d7c218549f898366b60cc4257c010efee71 (patch) | |
tree | 6bd02e1d6341bc08070ae66f1626f427ff95e52a /includes/common.inc | |
parent | bcb5ebcdbea167801c7e29916b50b80916f9b0d2 (diff) | |
download | brdo-6baa7d7c218549f898366b60cc4257c010efee71.tar.gz brdo-6baa7d7c218549f898366b60cc4257c010efee71.tar.bz2 |
- Some URL alias fixes by Matt.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index cf9876767..a1ad701aa 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1076,7 +1076,9 @@ function form_allowed_tags_text() { function get_url_alias($path) { $map = get_url_map(); - return array_search($path, $map); + if ($map) { + return array_search($path, $map); + } } /** |