From f1611a7edd31b2eb4f6072b59593f7418b738ca0 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 9 May 2009 16:00:08 +0000 Subject: [PATCH] check if HYDRA_DBI is defined in stead of empty string comparison --- src/lib/Hydra/Helper/Nix.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index c758bd91..1865979b 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -66,7 +66,7 @@ sub getHydraPath { sub getHydraDBPath { my $db = $ENV{"HYDRA_DBI"}; - if ($db ne "") { + if ( defined $db ) { return $db ; } else {