A PHP warning is emitted when the shortener object-info table is rendered on a linked element (proposal/order/invoice/contract):
Warning: Undefined property: stdClass::$EASYURL_SHOW_QRCODE in htdocs/custom/easyurl/class/shortener.class.php on line 525
Cause
EASYURL_SHOW_QRCODE is a per-user setting ($user->conf, stored in llx_user_param). It is read directly ($user->conf->EASYURL_SHOW_QRCODE) at lines 525 and 544 without a guard, so for any user who has never toggled the QR-code switch the property does not exist on $user->conf and PHP raises an undefined-property warning.
Fix
Read the optional user param through !empty() (like isset(), it does not warn on missing properties) at both call sites.
A PHP warning is emitted when the shortener object-info table is rendered on a linked element (proposal/order/invoice/contract):
Warning: Undefined property: stdClass::$EASYURL_SHOW_QRCODE in htdocs/custom/easyurl/class/shortener.class.php on line 525Cause
EASYURL_SHOW_QRCODEis a per-user setting ($user->conf, stored inllx_user_param). It is read directly ($user->conf->EASYURL_SHOW_QRCODE) at lines 525 and 544 without a guard, so for any user who has never toggled the QR-code switch the property does not exist on$user->confand PHP raises an undefined-property warning.Fix
Read the optional user param through
!empty()(likeisset(), it does not warn on missing properties) at both call sites.