From 05650e912d51bb6434d66af61aaf24ffb1b0032a Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Fri, 26 Sep 2014 08:53:55 +1200 Subject: [PATCH] FIX: typo in field name --- code/EditableSpamProtectionField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/EditableSpamProtectionField.php b/code/EditableSpamProtectionField.php index fe273b6..737fb1a 100644 --- a/code/EditableSpamProtectionField.php +++ b/code/EditableSpamProtectionField.php @@ -71,7 +71,7 @@ if(class_exists('EditableFormField')) { // Get protector $protector = FormSpamProtectionExtension::get_protector(); - if (empty($protector)) return fields; + if (!$protector) return $fields; // Each other text field in this group can be assigned a field mapping $mapGroup = FieldGroup::create(_t(