fix phpstan (#26837)

This commit is contained in:
Frédéric FRANCE 2023-11-24 09:28:02 +01:00 committed by GitHub
parent 3a182e99aa
commit bb2741ef58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,7 +291,7 @@ class pdf_standard extends CommonStickerGenerator
// List of values to scan for a replacement
$substitutionarray = array(
'__ID__' => $object->rowid,
'__ID__' => $object->id,
'__REF__' => $object->ref,
'__LOGIN__' => empty($object->login) ? '' : $object->login,
'__FIRSTNAME__' => empty($object->firstname) ? '' : $object->firstname,
@ -331,7 +331,7 @@ class pdf_standard extends CommonStickerGenerator
'textheader'=>$textheader,
'textfooter'=>$textfooter,
'textright'=>$textright,
'id'=>(isset($object->rowid) ? $object->rowid : ""),
'id'=>(isset($object->id) ? $object->id : ""),
'photo'=>(isset($object->photo) ? $object->photo : "")
);
}