Bug 8435: (follow-up) make SearchSubscriptions handle lack of userenv
[koha.git] / members / readingrec.pl
index d41e3f9..0f0c3df 100755 (executable)
@@ -103,7 +103,7 @@ if (! $limit){
 }
 
 
-my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
+my ($picture, $dberror) = GetPatronImage($data->{'borrowernumber'});
 $template->param( picture => 1 ) if $picture;
 
 if (C4::Context->preference('ExtendedPatronAttributes')) {