Argument "" isn't numeric in numeric ne (!=)
One of the "fun" things about perl and its type system is that
it uses different operators to compare strings vs comparing numbers...
Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
my $e = new_editor();
my $norm_heading = $e->json_query($norm_heading_query)->[0]->{'authority.simple_normalize_heading'};
- unless (defined($norm_heading) && $norm_heading != '') {
+ unless (defined($norm_heading) && $norm_heading ne '') {
return OpenILS::Event->new('BAD_PARAMS', note => 'Heading normalized to null or empty string');
}