From b6bae251a1cbe60284b6c7c2499445e96596bc73 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 1 Jan 2003 09:29:05 +0000 Subject: [PATCH] If prefix isn't defined in config.php then define it as "" to avoid problems with upgraders who don't edit config.php --- lib/setup.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/setup.php b/lib/setup.php index 89f61859b1..16a3dc8df5 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -23,6 +23,11 @@ die; } + if (!isset($CFG->prefix)) { // Just in case it isn't defined in config.php + $CFG->prefix = ""; + } + + /// Load up standard libraries -- 2.39.5