mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: check isset($variable) before using $variable
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@79602 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
742984cb49
commit
1a32847855
@ -256,7 +256,7 @@ class FormField extends RequestHandler {
|
||||
* @param $class String
|
||||
*/
|
||||
function removeExtraClass($class) {
|
||||
if(array_key_exists($class, $this->extraClasses)) unset($this->extraClasses[$class]);
|
||||
if(isset($this->extraClasses) && array_key_exists($class, $this->extraClasses)) unset($this->extraClasses[$class]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user