From: scyrma Date: Fri, 4 Jul 2008 02:17:18 +0000 (+0000) Subject: Prevent a php notice X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b31b9907b03bf4e8ee9553b01230096011ff9249;p=moodle.git Prevent a php notice --- diff --git a/lib/editor/htmlEditor.class.php b/lib/editor/htmlEditor.class.php index ac1cb26dd7..1a3a2de8cc 100644 --- a/lib/editor/htmlEditor.class.php +++ b/lib/editor/htmlEditor.class.php @@ -92,7 +92,7 @@ class htmlEditor { } - if (is_array($CFG->editorsrc)) { + if (isset($CFG->editorsrc) && is_array($CFG->editorsrc)) { $CFG->editorsrc = $configuration + $CFG->editorsrc; } else { $CFG->editorsrc = $configuration;