check if HYDRA_DBI is defined in stead of empty string comparison

This commit is contained in:
Rob Vermaas 2009-05-09 16:00:08 +00:00
parent f2a1fb3937
commit f1611a7edd

View file

@ -66,7 +66,7 @@ sub getHydraPath {
sub getHydraDBPath {
my $db = $ENV{"HYDRA_DBI"};
if ($db ne "") {
if ( defined $db ) {
return $db ;
}
else {