FIX: Ensure protector is a valid class to create
This commit is contained in:
parent
9abe13fcb6
commit
420a51bbb5
|
@ -56,7 +56,7 @@ class FormSpamProtectionExtension extends Extension {
|
|||
}
|
||||
|
||||
if($protector && class_exists($protector)) {
|
||||
return Injector::inst()->create($protector);
|
||||
return Injector::inst()->create($protector);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue