Skip to content

Commit

Permalink
Avoid one notice at installation time (when wwwroot isn't set) and
Browse files Browse the repository at this point in the history
the new qualified_me() needs it.
  • Loading branch information
stronk7 committed Mar 1, 2005
1 parent 03b80ff commit 68796e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/weblib.php
Expand Up @@ -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'];
Expand Down

0 comments on commit 68796e6

Please sign in to comment.