]> git.mjollnir.org Git - moodle.git/commitdiff
Small fix to not throw up error when current path discovered to be empty
authormoodler <moodler>
Tue, 3 Jun 2003 03:00:37 +0000 (03:00 +0000)
committermoodler <moodler>
Tue, 3 Jun 2003 03:00:37 +0000 (03:00 +0000)
admin/index.php

index 4c3ddab6f43bf338159a8aa299a65aa9fa9b4a7f..7fefcfcad7b2876ccd70377c2ef5aed6c14a3f0a 100644 (file)
@@ -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:
               <P>You have:
               <P>\$CFG->dirroot = \"".addslashes($CFG->dirroot)."\";