From e615db96d76be879199185015875af791ffaddcd Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 16 Dec 2009 05:38:56 +0000 Subject: [PATCH] BUGFIX: Don't throw a notice-level error if you access a setting that hasn't been set yet. (from r94349) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95598 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/HtmlEditorConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/HtmlEditorConfig.php b/forms/HtmlEditorConfig.php index aab05dc87..ec0873c22 100644 --- a/forms/HtmlEditorConfig.php +++ b/forms/HtmlEditorConfig.php @@ -110,7 +110,7 @@ class HtmlEditorConfig { * @return mixed - The value of the specified option */ function getOption($k) { - return $this->settings[$k]; + if(isset($this->settings[$k])) return $this->settings[$k]; } /**