mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
BUGFIX: Added condition to verify userforms module class exists
This commit is contained in:
parent
aa8ef8aca9
commit
feddb2cc49
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @package spamprotection
|
||||
*/
|
||||
|
||||
if(class_exists('EditableFormField')){
|
||||
class EditableSpamProtectionField extends EditableFormField {
|
||||
|
||||
static $singular_name = 'Spam Protection Field';
|
||||
@ -31,3 +31,4 @@ class EditableSpamProtectionField extends EditableFormField {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user