From cb5e3cb929bfde8c38b8f02d569382b166b24795 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 3 Jun 2003 03:00:37 +0000 Subject: [PATCH] Small fix to not throw up error when current path discovered to be empty --- admin/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)."\"; -- 2.39.5