From: moodler Date: Tue, 3 Jun 2003 03:00:37 +0000 (+0000) Subject: Small fix to not throw up error when current path discovered to be empty X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cb5e3cb929bfde8c38b8f02d569382b166b24795;p=moodle.git Small fix to not throw up error when current path discovered to be empty --- diff --git a/admin/index.php b/admin/index.php index 4c3ddab6f4..7fefcfcad7 100644 --- a/admin/index.php +++ b/admin/index.php @@ -63,7 +63,7 @@ /// Check settings in config.php $dirroot = dirname(realpath("../config.php")); - if ($dirroot != $CFG->dirroot) { + if (!empty($dirroot) and $dirroot != $CFG->dirroot) { error("Please fix your settings in config.php:

You have:

\$CFG->dirroot = \"".addslashes($CFG->dirroot)."\";