From 6baa7d7c218549f898366b60cc4257c010efee71 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 30 Sep 2003 20:59:26 +0000 Subject: - Some URL alias fixes by Matt. --- includes/common.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes/common.inc') 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); + } } /** -- cgit v1.2.3