Bug 8945: Update help files for 3.10
[koha.git] / catalogue / detail.pl
index c3a29b3..67e9c99 100755 (executable)
@@ -263,7 +263,7 @@ foreach my $item (@items) {
                $analytics_flag=1;
                $item->{countanalytics} = $countanalytics;
        }
-    if ($item->{'materials'} ne ''){
+    if (defined($item->{'materials'}) && $item->{'materials'} =~ /\S/){
        $materials_flag = 1;
     }
     push @itemloop, $item;