From 6e0e3a9c798ce1b21c939603484b0b08a4f0f23e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 24 Jul 2015 20:34:56 +0200 Subject: fix new show_log function 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") } -- cgit v0.10.2