bfojcapell: Added initializations to avoid notices

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42112 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 16:06:24 +00:00
parent 490d8a0b0a
commit 20f14f04af

View File

@ -4,6 +4,9 @@ class GroupedDropdownField extends DropdownField {
* @desc Returns a <select> tag containing all the appropriate <option> tags, with <optgroup> tags around the <option> tags as required * @desc Returns a <select> tag containing all the appropriate <option> tags, with <optgroup> tags around the <option> tags as required
*/ */
function Field() { function Field() {
// Initialisations
$options = '';
$classAttr = '';
if($extraClass = trim($this->extraClass())) { if($extraClass = trim($this->extraClass())) {
$classAttr = "class=\"$extraClass\""; $classAttr = "class=\"$extraClass\"";
} }