mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
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
Block a user