Skip to content
This repository
Browse code

Fixed broken DB connection parameter check.

  • Loading branch information...
commit a84efd2b3110649e5b99369f2ab5cc2c847bb486 1 parent de0198b
Dave Cross authored January 31, 2014

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Lystyng.pm
2  lib/Lystyng.pm
@@ -10,7 +10,7 @@ use Dancer ':syntax';
10 10
 our $VERSION = '0.0.1';
11 11
 use Dancer::Plugin::DBIC qw[schema resultset];
12 12
 
13  
-$ENV{LYSTYNG_DB_USER} && $ENV{LYSTYNG_DB_PASS}
  13
+defined $ENV{LYSTYNG_DB_USER} && defined $ENV{LYSTYNG_DB_PASS}
14 14
   or die 'Must set LYSTYNG_DB_USER and LYSTYNG_DB_PASS';
15 15
 
16 16
 my $cfg = setting('plugins');

0 notes on commit a84efd2

Please sign in to comment.
Something went wrong with that request. Please try again.