mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
490d8a0b0a
commit
20f14f04af
@ -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
|
||||
*/
|
||||
function Field() {
|
||||
// Initialisations
|
||||
$options = '';
|
||||
$classAttr = '';
|
||||
if($extraClass = trim($this->extraClass())) {
|
||||
$classAttr = "class=\"$extraClass\"";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user