diff options
author | Urban Müller | 2017-01-19 17:09:03 +0100 |
---|---|---|
committer | Urban Müller | 2017-01-19 17:09:03 +0100 |
commit | 1479d0c37fb1953a833d6a5a4a77e957da1e3fb4 (patch) | |
tree | bfc138d11bd3212629ae3b3e7824181d22b16a3b | |
parent | 6487a46d51b58ea5a53a67143520fdd7e44fd3b2 (diff) | |
download | itools-1479d0c37fb1953a833d6a5a4a77e957da1e3fb4.tar.gz itools-1479d0c37fb1953a833d6a5a4a77e957da1e3fb4.tar.bz2 itools-1479d0c37fb1953a833d6a5a4a77e957da1e3fb4.zip |
fix php 7.1 warning
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |