Commit 5fc06092 authored by Pablo López's avatar Pablo López Committed by Owen Bush
Browse files

Issue #3282502 by plopesc: Notice: Trying to get property 'value' of...

Issue #3282502 by plopesc: Notice: Trying to get property 'value' of non-object in recurring_events_tokens()
parent 725112ef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -93,11 +93,11 @@ function recurring_events_tokens($type, $tokens, array $data, array $options, Bu

      switch ($name) {
        case 'title':
          $replacements[$original] = $event_instance->title->value;
          $replacements[$original] = ($event_instance->hasField('title')) ? $event_instance->title->value : '';
          break;

        case 'description':
          $replacements[$original] = $event_instance->description->value;
          $replacements[$original] = ($event_instance->hasField('description')) ? $event_instance->description->value : '';
          break;

        case 'date':