Permalink
Browse files

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

  • Loading branch information...
1 parent 8c29dc9 commit 2eda74e6df53868a0111695e99a2ab8f983bc86b @jamiemccarthy jamiemccarthy committed Feb 26, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 2eda74e

Please sign in to comment.