diff --git a/plugins/notifier/abstract.inc b/plugins/notifier/abstract.inc index 93d25be..a60ab31 100644 --- a/plugins/notifier/abstract.inc +++ b/plugins/notifier/abstract.inc @@ -126,7 +126,7 @@ abstract class MessageNotifierBase implements MessageNotifierInterface { $wrapper->{$field_name}->set($output[$view_mode]); } else { - $format = $wrapper->type->{MESSAGE_FIELD_MESSAGE_TEXT}->get(0)->format->value(); + $format = $wrapper->type()->{MESSAGE_FIELD_MESSAGE_TEXT}->get(0)->format->value(); $wrapper->{$field_name}->set(array('value' => $output[$view_mode], 'format' => $format)); } }