FIX: Ensure protector is a valid class to create

This commit is contained in:
Will Rossiter 2014-09-26 08:16:59 +12:00
parent 9abe13fcb6
commit 420a51bbb5

View File

@ -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;
}