summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-07-24 18:34:56 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2015-07-24 18:34:56 (GMT)
commit6e0e3a9c798ce1b21c939603484b0b08a4f0f23e (patch)
tree772e0a1114b440f7ded71b48234d9ec795a6f3d0
parentb258601718869cab96ea99bbe7a7484f5a2aee75 (diff)
fix new show_log function0.1.0rel-0.1.0
-rwxr-xr-xlib/RHRD/rddb.pm2
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")
}