tvImagePlus icon indicating copy to clipboard operation
tvImagePlus copied to clipboard

Notice: Undefined property: stdClass::$caption

Open Ilja-developer opened this issue 7 years ago • 0 comments

Hi There,

First of all, thanks for all the work you've put into this extra.

For the first time, I ran into some notices:

Notice: Undefined property: stdClass::$caption in xx/xx/xx/core/cache/includes/elements/modsnippet/18.include.cache.php on line 87 Notice: Undefined property: stdClass::$credits in xx/xx/xx/core/cache/includes/elements/modsnippet/18.include.cache.php on line 88 Notice: Undefined property: stdClass::$altTag in xx/xx/xx/core/components/imageplus/model/cropengines/PhpThumbOf.php on line 157 Notice: Undefined property: stdClass::$caption in xx/xx/xx/core/components/imageplus/model/cropengines/PhpThumbOf.php on line 169 Notice: Undefined property: stdClass::$credits in xx/xx/xx/core/components/imageplus/model/cropengines/PhpThumbOf.php on line 170

In https://github.com/Jako/ImagePlus/blob/master/core/components/imageplus/elements/snippets/imageplus.snippet.php#L87-L88, could it be $data && isset($data->caption)?

It does occur in PHP 7.0, but not in 7.2.

Hope it's helpful.

Ilja

Ilja-developer avatar Jan 12 '18 16:01 Ilja-developer