If for some reason, an image file is unavailable on the file server (e.g. if the file was deleted), BlazyOEmbed::getImageItem() will return an empty array and this will cause some "undefined index" notices in BlazyFilter::getImageItemFromImageSrc().

The attached patch fixes these notices.

CommentFileSizeAuthor
blazy-undefined_index.patch1.08 KBprudloff

Comments

prudloff created an issue. See original summary.

prudloff’s picture

Status: Active » Needs review

  • gausarts committed 3668cd9 on 8.x-2.x authored by prudloff
    Issue #3132545 by prudloff: Undefined index notices when image file is...
gausarts’s picture

Status: Needs review » Fixed

Committed. Thank you for contribution.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.