summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 95c91e5..3846fe5 100644
--- a/it.class
+++ b/it.class
@@ -170,7 +170,7 @@ static function error($p = array())
if ($p['okstate'])
{
list($okfn, $okstatus) = explode("=", "/tmp/alertdata/okstate_" . $p['okstate']);
- $failcount = $okstatus ? 0 : @file_get_contents($okfn) + 1;
+ $failcount = $okstatus ? 0 : (int)@file_get_contents($okfn) + 1;
file_put_contents($okfn, "$failcount\n");
if ($failcount != $p['failcount'])
return;