Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
# SIP 2.0 extensions used by Envisionware
# Other types of terminals will ignore the fields, if
# they don't recognize the codes
- $resp .= maybe_add(FID_PATRON_EXPIRE, $patron->sip_expire);
+ if ($patron->can('sip_expire')) {
+ $resp .= maybe_add(FID_PATRON_EXPIRE, $patron->sip_expire);
+ }
$resp .= maybe_add(FID_PATRON_BIRTHDATE, $patron->sip_birthdate);
$resp .= maybe_add(FID_PATRON_CLASS, $patron->ptype);