Commit 2d2dfdab authored by Youri van Koppen's avatar Youri van Koppen
Browse files

Issue #3267244 by jmcerda, MegaChriz, tmaiochi: Fixed passing null to trim()...

Issue #3267244 by jmcerda, MegaChriz, tmaiochi: Fixed passing null to trim() in \Drupal\feeds\Plugin\Field\FieldType\FeedsItem::preSave().
parent 4fe17c82
Loading
Loading
Loading
Loading
+2 −0
Changes for src/Plugin/Field/FieldType/FeedsItem.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -129,7 +129,9 @@ class FeedsItem extends EntityReferenceItem implements FeedsItemInterface {
      // Only trim if url is a string.
      $this->url = trim($this->url);
    }
    if (is_string($this->guid)) {
      $this->guid = trim($this->guid);
    }
    $this->imported = (int) $this->imported;
  }