summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2017-01-19 17:09:03 +0100
committerUrban Müller2017-01-19 17:09:03 +0100
commit1479d0c37fb1953a833d6a5a4a77e957da1e3fb4 (patch)
treebfc138d11bd3212629ae3b3e7824181d22b16a3b /it.class
parent6487a46d51b58ea5a53a67143520fdd7e44fd3b2 (diff)
downloaditools-1479d0c37fb1953a833d6a5a4a77e957da1e3fb4.tar.gz
itools-1479d0c37fb1953a833d6a5a4a77e957da1e3fb4.tar.bz2
itools-1479d0c37fb1953a833d6a5a4a77e957da1e3fb4.zip
fix php 7.1 warning
Diffstat (limited to 'it.class')
-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;