Permalink
Browse files

Fix case where expected value is zero https://sourceforge.net/tracker…

  • Loading branch information...
jcameron committed Jun 25, 2012
1 parent 7ed722f commit cc6d8e613a36e95a78be6f1c0a79c65aacfccf14
Showing with 1 addition and 1 deletion.
  1. +1 −1 status/query-monitor.pl
View
@@ -37,7 +37,7 @@ sub get_query_status
local @r = $cmd->fetchrow();
$cmd->finish();
-if ($_[0]->{'result'} && $r[0] ne $_[0]->{'result'}) {
+if ($_[0]->{'result'} ne '' && $r[0] ne $_[0]->{'result'}) {
return { 'up' => 0,
'desc' => &text('query_ewrong', $r[0]) };
}

0 comments on commit cc6d8e6

Please sign in to comment.