diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/RHRD/rddb.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/RHRD/rddb.pm b/lib/RHRD/rddb.pm index b1641ed..63a182c 100755 --- a/lib/RHRD/rddb.pm +++ b/lib/RHRD/rddb.pm @@ -195,7 +195,7 @@ sub get_show_carts my $log_exists = $sth->fetchrow_array; $sth->finish(); - if(!defined $log_exists && $log_exists eq 'Y') { + if(!defined $log_exists || $log_exists ne 'Y') { return (undef, 'ERROR', "Log with name '$logname' does not exist") } |