Browse files

Fixed broken DB connection parameter check.

  • Loading branch information...
1 parent de0198b commit a84efd2b3110649e5b99369f2ab5cc2c847bb486 @davorg committed Jan 31, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Lystyng.pm
View
2 lib/Lystyng.pm
@@ -10,7 +10,7 @@ use Dancer ':syntax';
our $VERSION = '0.0.1';
use Dancer::Plugin::DBIC qw[schema resultset];
-$ENV{LYSTYNG_DB_USER} && $ENV{LYSTYNG_DB_PASS}
+defined $ENV{LYSTYNG_DB_USER} && defined $ENV{LYSTYNG_DB_PASS}
or die 'Must set LYSTYNG_DB_USER and LYSTYNG_DB_PASS';
my $cfg = setting('plugins');

0 comments on commit a84efd2

Please sign in to comment.