@@ -, +, @@ catalogue/details.pl The intent was clearly to know if the materials column should be displayed or not. As such, a defined check handles the NULL, 0, and '0' cases. The string match for /\S/ handles the intent of only displaying the column if is there is text in the materials field. --- catalogue/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/catalogue/detail.pl +++ a/catalogue/detail.pl @@ -261,7 +261,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; --