Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ARGH!! Negative logic sucks. Stupid bug fixed. Thanks pudge.

  • Loading branch information...
commit 2eda74e6df53868a0111695e99a2ab8f983bc86b 1 parent 8c29dc9
@jamiemccarthy jamiemccarthy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Slash/Utility/Environment/Environment.pm
View
2  Slash/Utility/Environment/Environment.pm
@@ -150,7 +150,7 @@ sub dbAvailable {
my $newval;
if (-e "/usr/local/slash/dboff") { $newval = 0 }
elsif (!$token || $token !~ /^(\w+)/) { $newval = 1 }
- elsif (!-e "/usr/local/slash/dboff_$1") { $newval = 0 }
+ elsif (-e "/usr/local/slash/dboff_$1") { $newval = 0 }
else { $newval = 1 }
$dbAvailable_lastval = $newval;
$dbAvailable_lastcheck = time;
Please sign in to comment.
Something went wrong with that request. Please try again.