use Carp;
use Koha::Database;
+use Koha::Patrons;
use Koha::Patron::Images;
use base qw(Koha::Object);
sub guarantor {
my ( $self ) = @_;
- return undef unless $self->guarantorid();
+ return unless $self->guarantorid();
return Koha::Patrons->find( $self->guarantorid() );
}
sub guarantees {
my ( $self ) = @_;
- return Koha::Patrons->search({ guarantorid => $self->borrowernumber });
+ return Koha::Patrons->search( { guarantorid => $self->borrowernumber } );
}
=head3 siblings
my $guarantor = $self->guarantor;
- return undef unless $guarantor;
+ return unless $guarantor;
return Koha::Patrons->search(
{