sarahg / drupal8-image-assist-migrate-plugin

A Drupal 8 migrate plugin for replacing Image Assist tags with HTML image tags.
0 stars 0 forks source link

$pieces is not defined #1

Open illepic opened 8 years ago

illepic commented 8 years ago

This will always be false: https://github.com/sarahg/drupal8-image-assist-migrate-plugin/blob/master/src/Plugin/migrate/process/NamaImgAssist.php#L57

count($pieces) == 8

Since $pieces is not defined.

ghost commented 8 years ago

Correct. I solved it with adding before: $pieces = explode("|", $img_pieces);

Also, the first condition actually includes 9 items, so should be executed when count($pieces) == 9, and not 8.