View | Details | Raw Unified | Return to bug 18403
Collapse All | Expand All

(-)a/members/memberentry.pl (-2 / +1 lines)
Lines 78-84 my ($template, $loggedinuser, $cookie) Link Here
78
my $borrowernumber = $input->param('borrowernumber');
78
my $borrowernumber = $input->param('borrowernumber');
79
my $patron         = Koha::Patrons->find($borrowernumber);
79
my $patron         = Koha::Patrons->find($borrowernumber);
80
my $userenv = C4::Context->userenv;
80
my $userenv = C4::Context->userenv;
81
if ( $userenv and $userenv->{number} ) { # Allow DB user to create a superlibrarian patron
81
if ( $patron and $userenv and $userenv->{number} ) { # Allow DB user to create a superlibrarian patron
82
    my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in";
82
    my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in";
83
    output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
83
    output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
84
}
84
}
85
- 

Return to bug 18403