BUGFIX: Added condition to verify userforms module class exists

This commit is contained in:
Carlos Barberis 2010-07-21 01:56:12 +00:00
parent aa8ef8aca9
commit feddb2cc49

View File

@ -6,8 +6,8 @@
*
* @package spamprotection
*/
class EditableSpamProtectionField extends EditableFormField {
if(class_exists('EditableFormField')){
class EditableSpamProtectionField extends EditableFormField {
static $singular_name = 'Spam Protection Field';
@ -30,4 +30,5 @@ class EditableSpamProtectionField extends EditableFormField {
function showInReports() {
return false;
}
}
}