getLocalThumbnailPath() can throw an error when a provider doesn't support thumbnail_url and isn't a photo.

It should use !empty() instead of isset() when checking $url because getOriginalThumbnailPath() returns FALSE to indicate that a path to the original thumbnail isn't available.

Comments

devin carlson’s picture

Status: Active » Needs review
StatusFileSize
new557 bytes

A patch to make the change.

devin carlson’s picture

Status: Needs review » Fixed

Tested #1 and committed to Media: oEmbed 7.x-2.x.

  • Devin Carlson committed f721e69 on 7.x-2.x
    Issue #2476085 by Devin Carlson: PHP notice when previewing files from...

Status: Fixed » Closed (fixed)

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