From 61647ccb92275db3bf8823659274c1a8c98502a0 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 5 Sep 2006 03:27:08 +0000 Subject: [PATCH] Use the defaultsetting if the variable isn't set yet --- lib/adminlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adminlib.php b/lib/adminlib.php index 8de5aba5c8..a616083b21 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -1239,7 +1239,7 @@ class admin_setting_configtext extends admin_setting { function get_setting() { global $CFG; - return (isset($CFG->{$this->name}) ? $CFG->{$this->name} : NULL); + return (isset($CFG->{$this->name}) ? $CFG->{$this->name} : $this->defaultsetting); } function write_setting($data) { -- 2.39.5