From 68796e6b60166ae469003abb1b2fe62a827f2e27 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 1 Mar 2005 00:11:35 +0000 Subject: [PATCH] Avoid one notice at installation time (when wwwroot isn't set) and the new qualified_me() needs it. --- lib/weblib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 34a7e43d60b9a..f04c47547c218 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -208,7 +208,9 @@ function qualified_me() { global $CFG; - $url = parse_url($CFG->wwwroot); + if (!empty($CFG->wwwroot)) { + $url = parse_url($CFG->wwwroot); + } if (!empty($url['host'])) { $hostname = $url['host'];