maikschneider / bw_focuspoint_images

With this TYPO3 extension you can create responsive image maps in the backend. This extension ships an image editor that can be used to add areas and information to an image.
5 stars 1 forks source link

Focuspoint Processor: Access of non existing property target #2

Closed 3l73 closed 1 year ago

3l73 commented 1 year ago

Within the Focuspoint processor the property ‘target’ of standard object.

In some cases this property does not exists which leads to a warning within the TYPO3 log.

PHP Warning: Undefined property: stdClass::$target in public/typo3conf/ext/bw_focuspoint_images/Classes/DataProcessing/FocuspointProcessor.php line 57

Currently the code looks like this:

if ($fieldValue->target) {

In order to reduce the log message, the existens of the property should be verified:

if (property_exists($fieldValue, 'target') && $fieldValue->target) {
maikschneider commented 1 year ago

@3l73 Thanks for reporting this! I added your fix in v3.0.4 :)